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 | [reply] |
merlyn, I'm just wondering what you mean about not relying on any environment variable beginning with HTTP_?
| [reply] |
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.
| [reply] |
To add on to what merlyn said, the environment variables should be:
SERVER_PORT should be 443 for SSL
SSL_CIPHER_ALGKEYSIZE and SSL_CIPHER_USEKEYSIZE should be 128 bit for good encryption
At least, I know this works for Apache.
Jeremy
| [reply] |