Re: most reliable way to test if using https
| From: | Curt Zirzow | Date: | Sat, 14 Jan 2006 06:47:27 +0000 |
| Subject: | Re: most reliable way to test if using https | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228609@lists.php.net to get a copy of this message | ||
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