|
Answer» The difference between GET and POST are given below: | GET | POST |
|---|
| 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 documents | The 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. |
|