DEV Community

Vinay Patil
Vinay Patil

Posted on

1

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.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay