A URL packs the whole instruction into one line: scheme, host, port, path, query, and a fragment the server never sees (Ch 1). Because humans remember names and networks need numbers, the DNS chain of directories — root, TLD, authoritative — turns the host into an IP address, with a recursive resolver doing the walking and TTLs letting everyone cache the answer (Ch 2).
Then the browser speaks HTTP: a request line, headers, a blank line and an optional body; a status line, headers and a
body back (Ch 3). The method says what kind of action it is — and whether it's safe and idempotent, which decides
whether a retry after a lost reply can do harm (Ch 4). The status code says what happened and whose fault it was (Ch 5).
Headers are the parcel label — most importantly Content-Type, with JSON as the everyday body (Ch 6).
HTTP forgets you after every request, so the server hands the browser a cookie, and its attributes (HttpOnly,
Secure, SameSite) each block a specific attack (Ch 7). Responses can be cached — max-age for "trust your copy",
ETag and 304 for "check it cheaply" (Ch 8). The same messages have been packed three ways: HTTP/1.1 as text, HTTP/2
as multiplexed binary frames over one TCP connection, and HTTP/3 over QUIC without head-of-line blocking (Ch 9).
To keep it private, TLS uses a padlock-and-key (asymmetric) idea only to prove identity with a certificate signed
up a chain to a trusted CA, and to agree a secret with Diffie–Hellman — then encrypts everything with a fast one-key
symmetric cipher (Ch 10, 11). In front of the servers sit reverse proxies, load balancers and CDNs, which end
TLS, spread load and serve cached copies from nearby — the Chennai edge in our real curl (Ch 12).
And when you type a URL and press Enter, all five Foundations files fire in sequence in under a second: URL → DNS → routing, ARP and NAT → TCP → TLS → HTTP → proxies → your server's process → response → pixels (Ch 13).