NETWORKING / A CONCEPT NOTE

HTTP Request Lifecycle

what happens when you hit Enter

~75 sec read

Overview · mechanism
pitfall · examples

01 / THE SHORT VERSION

The idea in a few sentences.

From typing a URL to rendering the page: DNS lookup, TCP/TLS handshake, sending the HTTP request, backend routing, receiving the response, and browser rendering.

02 / FOLLOW THE MECHANISM

How the lifecycle flows

  1. DNS Resolution

    browser converts the hostname to an IP address.

  2. Handshake

    browser establishes TCP connection and completes TLS handshake.

  3. HTTP Exchange

    browser sends the HTTP request; server processes it and replies with HTML.

  4. Render

    browser parses HTML, fetches static assets, and builds the page.

04 / COMMAND NOTES

Read the command, then the result.

Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.

EXAMPLE 01 · REFERENCE

print timing breakdown for DNS, TCP, TLS

curl -w '@curl-format.txt' -o /dev/null -s https://supraj.dev

EXAMPLE 02 · REFERENCE

trace DNS path

dig +trace supraj.dev

Explore command anatomy in the CLI lab