Re: most reliable way to test if using https

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 13, 2006 at 04:12:08PM -0700, Ray Hauge wrote:
> if( !preg_match("/HTTPS/", $_SERVER['SERVER_PROTOCOL']) ){
> 	....
> }
> 
> That's what I have been using.

Thats odd cause all my servers report this as SERVER_PROTOCOL via
https:

 $_SERVER["SERVER_PROTOCOL"] == HTTP/1.1

Thats odd cause all my servers report this as SERVER_PROTOCOL via
http:

 $_SERVER["SERVER_PROTOCOL"] == HTTP/1.1

Protocol doesn't have to do with how it is being transferred. The
protocol is based on the request being givin:

  GET / HTTP/1.1

Curt.
-- 
cat .signature: No such file or directory

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux