in reply to Secure or not secure, that question.

There are CGI environment variables to determine that. See the docs for your specific server for details.

Do not rely on any environment variable beginning with HTTP_, however.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Secure or not secure, that question.

Replies are listed 'Best First'.
Re: Re: Secure or not secure, that question.
by fpi (Monk) on Mar 13, 2001 at 22:18 UTC
    merlyn, I'm just wondering what you mean about not relying on any environment variable beginning with HTTP_?

      As the CGI docs will tell you, environment variables beginning with HTTP_ are the HTTP headers sent by the client in its request.

      So, if an HTTP request contains the header Field: Value, then a Perl CGI will see $ENV{'HTTP_FIELD'} as the string Value.

        tomhukins, I still don't understand why relying on an HTTP_ environment variable would not be recommended. I am asking because I rely on them all the time. So they indicate they are coming from the client....isn't that what akm2 is looking for?