NETWORKING · 8 MIN
How a Request Travels
DNS finds the server, TCP connects, HTTP carries the request and response.
ARCH explains
- DNS turns a name like app.example.com into an IP address.
- TCP makes a reliable connection; TLS (HTTPS) encrypts it.
- HTTP methods: GET reads, POST creates, PUT/PATCH updates, DELETE removes; status codes 2xx ok, 4xx client error, 5xx server error.
Real world: Looking up a friend's address (DNS), driving there (TCP), and handing over a letter (HTTP).
Code
Browser → DNS lookup → IP 203.0.113.7
→ TCP + TLS handshake
→ GET /profile → 200 OK + JSONCheckpoint quiz
A 503 status code means…