I have a custom default page for my browser which contains, among other things, a button like this:
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"><td align="center">
<form ACTION="https://X.com/" NAME="login" ID="k2" METHOD="post">
<input TYPE="hidden" NAME="username" VALUE="MyName">
<input TYPE="hidden" NAME="password" VALUE="secret">
<input NAME="SUBMIT" TYPE="SUBMIT" VALUE="Login">
</form>
</td></pre><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">My local page is an "insecure" connection, in that it's not encrypted, but since it's coming off my HD it's effectively secure.
What i'm wondering is, when i click on the button above, am i transmitting the username and password in the clear, or is it encrypted? The URL is to a secure server, but since a connection to a secure server has yet to be established, i'm thinking it might be sent in the clear without encryption. Doesn't the server have to send a public key to the browswer before encryption can begin? And wouldn't the form/button data be sent immediately? Or is there actually a handshaking process which occurs that would protect the form data (since the METHOD is a POST and not a GET)?