HTTP: An HTTP request

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


What’s in a request?

The first thing is the URL, which we’ve already seen before.

When we enter an address and press enter in our browser, under the hood the browser sends to the correct IP address a request like this:

GET /a-page

where /a-page is the URL you requested.

The second thing is the HTTP method (also called verb).

HTTP in the early days defined 3 of them:

  • GET
  • POST
  • HEAD

and HTTP/1.1 introduced

  • PUT
  • DELETE
  • OPTIONS
  • TRACE

We’ll see them in detail in a minute.

The third thing that composes a request is a set of HTTP headers.

The client sets request headers to communicate something to the server when we make a request.

For example the client can set an authorization token, or a cookie, or set a language.

And the server can use response headers to communicate information back.

For example, the content encoding, the content type, when it was last modified, etc.

Finally, in some kinds of requests (POST and PUT requests) we can have a request body.

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