Differentiate between GET and POST

The difference between GET and POST are given below:

GET method is used for requesting data from a specified resource.POST is used for sending the data to the server as a package in a separate communication with the processing script.
Data is sent in the form of URL parameters which are strings of name-value pairs separated by ampersands(&)Data sent through the POST method will not be seen in the URL
GET method cannot be used for sending binary data like images or word documentsThe POST method can be used to send ASCII as well as binary data like images and word documents
This method must not be used if you have any sensitive information like a password to be sent to the server.Sensitive information can be sent using this method.
It can be used for submitting the form where the user can bookmark the result.Submissions by form with POST cannot be bookmarked.
You can use this method only for data that is not secure.Data sent through this method is secure.
GET method is not safer since parameters may be stored in web server logs or browser history.POST method is safer than GET because the parameters are not stored in web server logs or browser history.

Leave a Comment