[PHPLondon-discuss] HTTPS redirects?
Marcus Bointon
marcus at synchromedia.co.uk
Thu Sep 20 16:11:05 BST 2007
A weird little problem I've run into. I have a login form that can be
accessed via http or https. On a successful login, it redirects to an
https address. However, if the page was originally http, the client
just goes to the unsecured URL as if I had specified http in the
redirect. For example, I put this at http://www.example.com/test.php:
<?php header("Location: https://www.example.com/login.php"); ?>
If I call that with 'curl -I', I can see that the URL returned in the
location header is just http. What happened to my 's'?
Are you not allowed to redirect across protocols or something? Or am
I going nuts?
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
UK resellers of info at hand CRM solutions
marcus at synchromedia.co.uk | http://www.synchromedia.co.uk/
More information about the Phplondon-discuss
mailing list