Differences between GET and POST methods

GET and POST are two different types of HTTP requests.

GET:  GET is for retrieving data. It should have no side effects, you should be able to request the same URL over and over harmlessly.
a) GET requests can be cached
b) GET requests remain in the browser history
c) GET requests can be bookmarked
d) GET requests should never be used when dealing with sensitive data
e) GET requests have length restrictions
f) GET requests should be used only to retrieve data

POST:  A POST request is used to send data to the server, for example customer information, file upload etc using HTML forms.

a) POST requests can not be cached
b) POST requests do not remain in the browser history
c) POST requests cannot be bookmarked
d) POST requests have no restrictions on data length

Leave a Comment