Re: Finding out whether request was done via http or https
| From: | Jim Lucas | Date: | Sat, 24 May 2003 15:30:55 +0000 |
| Subject: | Re: Finding out whether request was done via http or https | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148835@lists.php.net to get a copy of this message | ||
if https is being used, you will find this.
$_SERVER["HTTPS"] == 'on';
all you need to do is test for this and you're done.
now, on the regular server, it won't be set!
Jim Lucas
----- Original Message -----
From: "Lauri Vain" <lauri_lists@tharapita.com>
To: <php-general@lists.php.net>
Sent: Friday, May 23, 2003 2:18 AM
Subject: [PHP] Finding out whether request was done via http or https
> Hello,
>
> Is there a way to find out in the code whether the request was made via
> http or https?
>
> Thanks,
> Lauri
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>