Yelp interview question

What is the difference between the get and post method

Interview Answer

Anonymous

18 May 2011

get puts the variable information into URL, so the page can be bookmarked, but since it is visible to everyone, it is not suitable for sensitive information like passwords ect. Also has a limit on the amount of data that can be transmitted this way. post puts the information into the HTTP message body (as someone else has stated) but the information is "invisible" so it is slightly safer than using get for passwords and other secret information. There is also no limit on the information that can be sent this way.