DEV Community

Alti
Alti

Posted on

2 1

HTTP Requests for Beginners.

Introduction

If you are like me, HTTP requests can be confusing at first. But hopefully with this guide, things might be a little easier for you when learning requests and how to use them.

A helpful tool for learning and practicing HTTP requests in my experience would be Requestbin.

Now, let's get started with the methods.

GET

GET is used when reading or retrieving resources. When the GET request is sucessful, it will return a response with the resource you requested.

POST

POST sends data to the server, usually to create a resource or update an existing resource.

PUT

PUT also creates a resource or updates an existing resource similar to POST, but PUT requests can be called multiple times and will remain the same. This means that PUT requests are idempotent.

DELETE

DELETE will remove the requested resource.

Other HTTP request methods

Here are more resources you can use to learn HTTP methods, including the ones that I did not cover in this post.

You can read about these methods here.

MDN - Request Methods

Rapid API - HTTP Request Methods

And more sources all across the web can help!

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (1)

Collapse
 
potato2171 profile image
potato2171

Well explained, couldn't explain it myself any better

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