Difference between GET and POST methods
The GET Method
GET requests can be cached
GET requests remain in the browser history
GET requests can be bookmarked
GET requests should never be used when dealing with sensitive data
GET requests have length restrictions
GET requests should be used only to retrieve data
The POST Method
POST requests are never cached
POST requests do not remain in the browser history
POST requests cannot be bookmarked
POST requests have no restrictions on data length
The HEAD Method
Same as GET but returns only HTTP headers and no document body
A HEAD request is just like a GET request, except it asks the server to return the response headers only
GET requests can be cached
GET requests remain in the browser history
GET requests can be bookmarked
GET requests should never be used when dealing with sensitive data
GET requests have length restrictions
GET requests should be used only to retrieve data
The POST Method
POST requests are never cached
POST requests do not remain in the browser history
POST requests cannot be bookmarked
POST requests have no restrictions on data length
The HEAD Method
Same as GET but returns only HTTP headers and no document body
A HEAD request is just like a GET request, except it asks the server to return the response headers only
Difference between GET and POST methods
Reviewed by Bhaumik Patel
on
10:33 AM
Rating: