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.
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:
cool explanation I have ever seen
very succint. Big up!
Nice and very informative blog thanks to share with us.
Router Login not working
routerlogin admin page
Routerlogin
Routerlogin Net
Prithivi WiFi password
Post a Comment