HTTP Request methods

Table of contents

No heading

No headings in the article.

Today we see different HTTP request methods

First, we are going to see what is HTTP

HTTP Is nothing but the Hypertext transfer protocol and the main use of HTTP requests to enable smooth communication between client and server.

Although there are many request methods in HTTP we are going through each of them

GET Request -

It is used for data from the server

This request does not have anybody element

Syntax - GET /index.html

POST Request -

This is used to post data to the server from the client side

Use HTML form to send data to the server

PUT Request -

This request is used to update data on the server.

Syntax - PUT /new.html HTTP/1.1

HEAD Reuest -

This request is almost similar to the get request the only difference is that head requests don’t have a body

DELETE Request -

This request is used to delete data on the server.

/