Tuesday, June 24, 2008

GET vs PUT

Most common difference is that in GET, the parameters are passed in the URL itself using '?'. While in POST the parameters are passed via FORM elements i.e. the request parameters.

GET : As the name suggests this should be used to just get the data from the server. This indicates that the information sent to the server will not change the state of the server. This is why if a page with a GET request is refreshed in the browser, it does not show a warning.

POST : Post is used to put some data into the server that may result in the some state changes in the server. The name also suggests putting some data into the server.
This is why browser shows a WARNING message if a page with POST request is refreshed manually. Re-submitting the same data to server may give unexpected results.


4 comments:

App said...

cool explanation I have ever seen

emaag said...

very succint. Big up!

Netgear Router said...

Nice and very informative blog thanks to share with us.
Router Login not working
routerlogin admin page
Routerlogin
Routerlogin Net

Unknown said...

Prithivi WiFi password