Jump to content

https, ssl post question


daydreamer

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/131448-https-ssl-post-question/
Share on other sites

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)?

 

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.