Back to Articles
Cloud & Network6 min readHow Internet Requests Actually Work · Part 1 of 8

HTTP Requests Explained: Methods, URLs, Headers, and Bodies

Learn what an HTTP request really contains, how GET, POST, PUT, PATCH, DELETE, HEAD, and OPTIONS differ, and how browsers interpret URLs, headers, query strings, and request bodies.

HTTPREST APIURLsWeb DevelopmentNetworking

Developers often say that a browser sent a request, but several exchanges may occur first: a DNS query, a transport connection, a TLS handshake, and finally one or more HTTP requests. In web development, request usually means the HTTP message sent to an application.

Diagram 1

Different Kinds of Network Requests

Request is a broad word: HTTP, DNS, transport setup, datagrams, and ICMP messages operate at different layers.

DNS query -> TCP or QUIC setup -> TLS handshake -> HTTP request -> HTTP response

What an HTTP Request Contains

An HTTP request identifies a method and target, then supplies metadata in headers and, when needed, data in a body. The wire format differs between HTTP versions, but these conceptual parts remain useful.

Request example

POST /users?sendWelcome=true HTTP/1.1Host: api.example.comAuthorization: Bearer <token>Content-Type: application/json{ "name": "Nikhil", "email": "nikhil@example.com" }
Method
Describes the intended action, such as GET or POST.
Path
Identifies an application route or resource, such as /users.
Headers
Carry metadata such as content type, cookies, credentials, and accepted formats.
Body
Carries submitted data when the request needs a payload.

Common HTTP Methods

GET
Retrieve a representation, for example GET /products/100.
POST
Submit data or create something, for example POST /users.
PUT
Replace the current representation of a resource.
PATCH
Apply a partial update rather than replacing everything.
DELETE
Ask the server to remove a resource.
HEAD
Request headers similar to GET without a response body.
OPTIONS
Discover communication options; browsers also use it for CORS preflight.
Diagram 2

HTTP Request Methods

HTTP methods express request intent, from reading and creating resources to partial updates and capability discovery.

Methods communicate intent, but the application still decides what a route does. HTTP semantics are a contract used by clients, caches, proxies, and developers—not an automatic security boundary.

How to Read a URL

Diagram 3

Understanding URL Components

A URL gives the client the protocol, destination name, optional port, server path, query values, and browser-only fragment.

URL anatomy

https://api.example.com:443/products/100?currency=INR#detailsscheme: https | hostname: api.example.com | port: 443path: /products/100 | query: currency=INR | fragment: details

The hostname is resolved to an address, the port selects the service, and the path and query are sent to the server. The fragment is normally interpreted only by the browser and is not included in the HTTP request.

Headers and Bodies Have Different Jobs

Content-Type describes the body; Accept describes response formats the client can handle; Authorization or cookies may carry credentials. The body contains data such as JSON, form fields, or uploaded bytes. A GET can have query parameters without a body, while a POST can carry a body without a query string.

Remember

HTTP describes an application conversation. It still needs DNS to find the host, transport to carry bytes, and usually TLS to protect them.

Series

How Internet Requests Actually Work

An eight-part beginner series tracing internet communication from an HTTP request through DNS, IP, ports, transport protocols, packets, network devices, server infrastructure, security, and troubleshooting.

Part 1 of 8
About the Author

Nikhlesh Yadav is a Technical Lead and Solution Architect with 12+ years of experience across cloud-native systems, distributed platforms, AI integrations, Web3, and cyber security.

Read full profile