RE: [PHP] Location header does not work?

From: Date: Thu, 05 Aug 2004 16:56:43 +0000
Subject: RE: [PHP] Location header does not work?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-192902@lists.php.net to get a copy of this message
I sent Bing specific code that will work: If (!IsSet($_SERVER["HTTPS"])) Header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); Manually go to the URL specified. https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&i d=159&Itemid=162 It doesn't work. It will work if you remove all of the parameters and it will work if you specify only a few of the parameters. Basically, there is a problem with the "mambo" application handling input. Bing persists in troubleshooting the redirect when the focus should be on mambo. > -----Original Message----- > Right, you're obviously not getting this, so let's take it step by step. > > (1) Your browser requests > > https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view > &i > d=159&Itemid=162 > > (2) This fires the script /mambo/index.php on your server. > > (3) Script finds all conditions in the first if() are met, so tests > $_SERVER['HTTPS']. > > (4) ... finding it is not set, it issues a Location: redirect to > 5 > AÏxN`†o"‘1d…Ã’https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view > &i > d=159&Itemid=162 > > (5) Browser sees the redirect, and issues a new request for > > https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view > &i > d=159&Itemid=162; at this point, it also changes the URL displayed in its > address bar. > > (6) This seems to be where you are confused -- WHICH PAGE DO YOU THINK > THIS > IS GOING TO LOAD?

« previous php.general (#192902) next »