Enter your email id to get regular update free
Login
Your Email
Pasword

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.
GET Method
It 
 Query string  is sent in the URL of a GET request
/test/demo_form.php?name=value1&name2=value2

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.
POST Method
It 
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
Host: newsandstory.com
name=value1&name2=value2
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.
Request Methods
HTTP
Ayesha
Tech writer at newsandstory
Total 1142 views