DEV Community

Vinay Patil
Vinay Patil

Posted on

HTTP Requests

In this article, we are going to talk about Requests in HTTP, but first what is this HTTP?
HTTP everywhere
HTTP is a protocol that allows the fetching of resources, and it's the biggest protocol on the web like the most important one. because it is the base of any data exchange on the web and it is Primarily used to fetch HTML documents. it is a client-server protocol, so basically it means the requests are generated by the client(your browser) after sending the request the server responds to the client with some data.

Let's see what are those requests that HTTP uses.

1.GET: The GET method requests a representation of the specified resource. Requests using GET should not modify data they should be used to retrieve data.

2.POST: Post request is used for Creating or uploading data on the server and changes the state of the server. Eg. Posting on social media.

3.PUT: PUT requests are used to completely update data on the server. eg. updating profile

4.DELETE: As the name implies this request is used to delete the data on the server.

There are many more methods like HEAD, CONNECT, TRACE, PATCH that we will discuss later.

Top comments (0)