Kevin Schroeder has shared the results of a question he wanted answered when it came to PHP with a HTTPS (SSL) connection - which of the $_SERVER variables are available.
I found myself wondering what HTTPS variables were available in the $_SERVER variable today and didn’t find a specific list (and didn’t have mod_ssl installed). So as a public service, here is what my server says.
Thanks to some of the additional handling and information the SSL connection provides to PHP, there's several additional variables including things like:
- SSL_PROTOCOL
- HTTPS (set to "on")
- SSL_COMPRESS_METHOD
- SSL_CLIENT_VERIFY