Re: HTTPS vs. HTTP ?

From: Date: Fri, 05 Jul 2002 07:11:51 +0000
Subject: Re: HTTPS vs. HTTP ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-105578@lists.php.net to get a copy of this message
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

« previous php.general (#105578) next »