Re: HTTPS vs. HTTP ?
| From: | Philip Olson | Date: | Fri, 05 Jul 2002 07:17:45 +0000 |
| Subject: | Re: HTTPS vs. HTTP ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105580@lists.php.net to get a copy of this message | ||
On a related note, if https then the predefined
variable HTTPS will exist. $_SERVER['HTTPS']
will equal 'on'.
Regards,
Philip Olson
On Fri, 5 Jul 2002, Miguel Cruz wrote:
> On Thu, 4 Jul 2002, Jason Caldwell wrote:
> > Is there a way I can programmatically switch between HTTPS and HTTP... I use
> > a lot of INCLUDE's instead of HEADER("Location: ...");
> >
> > Can I use HEADER in another way (without redirecting) to activate HTTPS or
> > HTTP for any given page?
>
> Nope. The protocol is determined by the client when it makes its request.
> Once your code is running, it's too late. At that point you can only
> redirect to a https:// URL, which leads the client to generate
> a new
> request.
>
> miguel
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>