Login
Your Email
Pasword
Home
Write
Trending
History
Liked
Dashboard

What are HTTP Request Methods?

The two common HTTP methods are: GET and POST.

Do you have similar website/ Product?
Show in this page just for only $2 (for a month)
Create an Ad
0/60
0/180
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.
CONTINUE READING
Request Methods
HTTP
Ayesha
Tech writer at newsandstory