[ List Archives Home ] [ Thread index for 2008 ] [ Date index for 2008 ] [ Author index for 2008 ]


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Heather Parker wrote:
I noticed that search boxes on our site have both "get" and "post". What is the different, which one is recommended and are they interchangeable?

I did look this up, but I want a simple answer that I can understand. :>

Get sends the information out in the open tacked on to the end of the url string. PUT sends it separately in another HTPP header that you don't see normally with the browser. PUT also has more room and you can send more with it. Some folks think PUT is more secure but anyone who really wants to can find the POST data as well.

When you click on a link in your browser, your browser actually conducts a fairly sophisticated back and forth discussion with the remote server, most of which you don't see. The information is sent back and forth in the form of HTTP headers.