Get Vs Post Request. POST is a little safer than GET because the parameters are not stored in browser history or in web server logs. With POST form data appears within the message body of the HTTP request.
To make an example an operation that deletes a user account should not be directly executed after the user click on a link while viewing an image can be done through a link. In order to generate a POST request that contains a querystring separate from the body create a form where the action attribute is such. GET - Requests data from a specified resource POST - Submits data to be processed to a specified resource GET is basically used for just getting retrieving some data from the server.
This means the method is safer than GET and allows for considerably more data to be passed on but there are disadvantages as well such as side-effects on the server when re-submitting the same data.
GET method supports only string data types while POST method supports different data types such as string numeric binary etc. Jul 25 2017 Through a POST request the browser sends data to the server not through the URL but in a separate communication in a message body. In order to generate a POST request that contains a querystring separate from the body create a form where the action attribute is such. Never use GET when sending passwords or other sensitive information.
