daydreamer Posted November 5, 2008 Share Posted November 5, 2008 if you post any data to a https:// page then its encrypted, right? for example, if this form was on http://www.siteone.com: <form name="input" action="https://www.sitetwo.com/login.php" method="post"> <input type="text" name="user"> <input type="submit" value="Submit"> </form> When it is submitted, the data will be encrypted although the page with the form on wont show the pad lock because its not https:// ? And what if you send data from https://www.sitetwo.com/login.php to http://www.siteone.com, is it encrypted even though the data flow is going the other way? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/131448-https-ssl-post-question/ Share on other sites More sharing options...
JonnoTheDev Posted November 5, 2008 Share Posted November 5, 2008 All pages must use https:// protocol Quote Link to comment https://forums.phpfreaks.com/topic/131448-https-ssl-post-question/#findComment-682879 Share on other sites More sharing options...
daydreamer Posted November 5, 2008 Author Share Posted November 5, 2008 How sure are you of this? My interpretation is that, if a client posts something to a server on a https connection, it can only be sent via https:// because thats what the servers using. So if a html form is loaded into a clients browser, with action="https://www.sitetwo.com/login.php" , although the page which sent the form code was in http://, when the user clicks "submit", the form will attempt to send the details via https://. How could it send it unencrypted via http:// if the server isn't accepting these connections (http=port 80, https is normally 443)? Quote Link to comment https://forums.phpfreaks.com/topic/131448-https-ssl-post-question/#findComment-683018 Share on other sites More sharing options...
JonnoTheDev Posted November 5, 2008 Share Posted November 5, 2008 You maybe right. Unsure about at what point the data gets encrypted as POST & GET requests are sent in clear text packets. Quote Link to comment https://forums.phpfreaks.com/topic/131448-https-ssl-post-question/#findComment-683060 Share on other sites More sharing options...
rhodesa Posted November 5, 2008 Share Posted November 5, 2008 i am pretty sure you thought process is correct. as long as the page where the form is posting to is HTTPS, everything should be encrypted. but, most sites will encrypt the form page too so the user feels safer. ....again, not certain, but pretty sure Quote Link to comment https://forums.phpfreaks.com/topic/131448-https-ssl-post-question/#findComment-683064 Share on other sites More sharing options...
PFMaBiSmAd Posted November 5, 2008 Share Posted November 5, 2008 As long as the form method is post, the https connection will be negotiated when the action="..." url is requested. The post data will be sent after the connection is encrypted. Quote Link to comment https://forums.phpfreaks.com/topic/131448-https-ssl-post-question/#findComment-683078 Share on other sites More sharing options...
daydreamer Posted November 7, 2008 Author Share Posted November 7, 2008 ok thanks for your insight... thats how i thought it works Quote Link to comment https://forums.phpfreaks.com/topic/131448-https-ssl-post-question/#findComment-684640 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.