Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.