Possible Duplicate:
How secure is a HTTP POST?
Suppose I have a login page in php where a user is required to enter his name and password. form method
is post in this case.
Now someone(my friend) told me that the information(username and password) that is entered and sent to the server can be hacked just by fetching the header of the resulting page generated. So you should encrypt the header and that is why HTTPS is used.
This didn't make sense to me because I thought the information (username and password) sent via post
method are completely secure and just by header hacking one cannot have access to to the username and password.
Is my friend correct? If no is there any way to do such stuff for someone who has no access to the code? How can I send my private information via HTTPS (page to be coded in php)?
EDIT:
Data through get
method is sent via header. Right? Is data through post
also sent via header?