Categories: Technology

Various kinds of HTTP Protocol requests

HTTP (Hypertext Transfer Protocol) specifies a collection of request methods to specify what action is to be performed on a particular resource. The most commonly used HTTP request methods are GET, POST, PUT, PATCH, and DELETE. These are equivalent to the CRUD operations (create, read, update, and delete).

GET: GET request is used to read/retrieve data from a web server. GET returns an HTTP status code of 200 (OK) if the data is successfully retrieved from the server.

POST: POST request is used to send data (file, form data, etc.) to the server. On successful creation, it returns an HTTP protocol status code of 201.

PUT: A PUT request is used to modify the data on the server. It replaces the entire content at a particular location with data that is passed in the body payload. If there are no resources that match the request, it will generate one.

PATCH: PATCH is similar to a PUT request, but the only difference is, it modifies a part of the data. It will only replace the content that you want to update.

DELETE: A DELETE request is used to delete the data on the server at a specified location.

Rahul Varma

Recent Posts

What’s the ‘Pink Tax’ and how does it impede women?

Men and women frequently buy analogous day-to-day products. But the study shows that consumer products…

2 years ago

Shimla – Britisher’s Summer Capital in India

Shimla also known as Simla, (the official name until 1972) is the capital and the largest city of the Northern…

2 years ago

Jodhpur – Blue City of India

Jodhpur was historically the capital of the Kingdom of Marwar, which is now part of…

2 years ago

Top 9 programming languages in 2022

PythonPython is one of the foremost popular programming languages today and can still be so…

3 years ago

Unplanned Trip to Sikkim in COVID19 – Boulevard Square

SIKKIM: Unplanned Tour during COVID! Cheap Tickets, Hotels, Food - Episode 1 | Rahul Varma…

3 years ago

IELTS Fees of Registration, Cancellation, and more – Perception

The registration fee for the IELTS exam in India is Rs 14,700. The fee for…

3 years ago

This website uses cookies.