The HTTPS protocol is equivalent to using HTTP over an SSL or TLSSSL or TLS connection (over TCP).
Thus, first a TCP connection TCP connection (on port 443) is opened to the server. This is usually enough to reveal the serverserver's host name (i.e. www.mysite.com
in your case) to the attacker. (Actually only theThe IP address is revealed, but 1. you usually did a DNS query beforedirectly observed, and 2. many HTTPS servers serve only one domain per IP address.):
- you usually did an unencrypted DNS query before,
- many HTTPS servers serve only one domain per IP address,
- The server's certificate is sent in plain, and contains the server name (between multiple ones, maybe),
- in newer TLS versions, there is the server name indication, by which the client indicates to the server which host name is wished, so the server can present the right certificate, if it has multiple ones. (This is done to be able to go away from 2.)
Then a TLS handshake takes place. This includes negotiation of a cipher suite and then a key exchange. Assuming at least one of youyour browser and the server didn't include the NONE
cipher in the accepted suites, everything following the key exchange is encrypted.
And assuming there is no successful man-in-the-middle attack (i.e. an attacker which does intercept the connection, and presents a forged server certificate which your browser accepts), the key exchange is secure and no eavesdropper can decrypt anything which is then sent between you and the server, and also no attacker can change any part of the content without this being noticed. This includes the URL and any other part of the HTTP request, as well as the response from the server.
Of course, as D.W. mentions, the length of both request (which contains not much more variable data than the URL, maybe some Cookies) and response can be seen from the encrypted data stream. This might subvert the secrecy, specially if there are only a small number of different resources on the server. Also any follow-up resource requests.
Your password in the URL (or any other part of the request) should still be secure, though - at most its length can be known.