HTML Archives - Coding Sharp

HTML

Difference between HTTP GET and HTTP POST method

Difference between HTTP GET and HTTP POST method

Difference, HTML
HTTP GET request append all the required data to the URL while in HTTP POST method it will supply all the additional data to the body of message. Each form element in HTML form must have an method attributes, it can use either POST or GET. Get is a default method for form element if we are not specifying it. specified method attribute determines how form data is submitted to the server. GET method will encode all the data and append to the request URL as a query string. Post method will pass all the data in a message body of the HTTP request. Lets see all the difference 1 by 1 for GET and POST method as below. HTTP GET HTTP POST In Browser history all the params are stored in the URL. In Browser history none of the params are stored Get method can be cached Post met...