LLLLLLL Posted May 9, 2012 Share Posted May 9, 2012 If I'm on https://myserver.com/test.php, why is this form posting to the HTTP version of the page? <form method="post" action="test.php?step=1"> <input type="text" name="email"> <input type="submit" name="submit"> </form> I can hard-code the full path in the action, but that seems unnecessary. Further, I have some pages where it posts to HTTPS first (as I expect). Why would it go to one versus another? Quote Link to comment Share on other sites More sharing options...
requinix Posted May 9, 2012 Share Posted May 9, 2012 Because there's something else going on. Or in other words, not enough information. Is this online somewhere we can see? Quote Link to comment Share on other sites More sharing options...
LLLLLLL Posted May 9, 2012 Author Share Posted May 9, 2012 (sent a private message with URL) Quote Link to comment Share on other sites More sharing options...
LLLLLLL Posted May 10, 2012 Author Share Posted May 10, 2012 The only additional information I have is that based on browser settings, a user might get "although this page is encrypted the information you have entered is to be sent over an unencrypted network." This still doesn't make sense. It is an HTTPS page with a relative URL. How can it be posting as HTTP? Ugh. Quote Link to comment Share on other sites More sharing options...
LLLLLLL Posted May 10, 2012 Author Share Posted May 10, 2012 The answer here was that there was a <base> element on the page that I forgot about. This <base> tag had the href in HTTP, not HTTPS. Eh voila. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.