What are HTTP Request Methods?
The two common HTTP methods are: GET and POST.
The Hypertext Transfer Protocol (HTTP) is designed to enable communications between clients and servers. HTTP works as a request-response protocol between a client and server.
A web browser may be the client, and an application on a computer that hosts a web site may be the server.
Query string is sent in the URL of a GET request
GET requests can be cached.It requests remain in the browser history .It requests can be bookmarked.
GET requests should never be used when dealing with sensitive data and requests have length restrictions.
The data sent to the server with POST is stored in the request body of the HTTP request.
|POST /test/demo_form.php HTTP/1.1
POST requests are never cached.It requests do not remain in the browser history.
POST requests cannot be bookmarked and requests have no restrictions on data length.
Tech writer at newsandstory
Total 1142 views