AI Workshop: learn to build apps with AI →
HTTP: HTTP Methods

Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.


HTTP is based on methods.

Each method used performs a very different action.

The most popular are GET and POST.

GET

GET is the most used method. It’s the one that’s used when you type a URL in the browser address bar, or when you click a link.

It asks the server to send the requested resource as a response.

HEAD is just like GET, but tells the server not to send the response body. Just the headers.

POST

The client uses the POST method to send data to the server. It’s typically used in forms, for example, but also when interacting with a REST API.

PUT

The PUT method is intended to create a resource at that specific URL, with the parameters passed in the request body. Mainly used in REST APIs.

DELETE

The DELETE method is called against a URL to request deletion of that resource. Mainly used in REST APIs.

OPTIONS

When a server receives an OPTIONS request, it should send back the list of HTTP methods allowed for that specific URL.

TRACE

Returns to the client the request that was received. Used for debugging or diagnostic purposes.

Lessons in this unit:

0: Introduction
1: An HTTP request
2: ▶︎ HTTP Methods
3: HTTP Status Codes
4: HTTP Client/Server communication
5: HTTP Request Headers
6: HTTP Response Headers
7: HTTPS
8: HTTP/2
9: HTTP/3
10: The HTTP/2 protocol
11: Caching in HTTP
12: The curl guide to HTTP requests
13: The HTTP Request Headers List
14: The HTTP Response Headers List
15: HTTP vs HTTPS
16: The HTTPS protocol
17: An introduction to REST APIs
18: What is an RFC?
19: How to generate a local SSL certificate