Communication Networks · Visualized

HTTP & HTTPS

Application Protocols

The protocols your apps speak directly: web, mail and file transfer — requests, responses and headers.

3 interactive subtopics — each one animated, step-through and explained.

HTTP & HTTPS

Application Protocols

HTTP is a gloriously simple protocol: the client sends a text request (method + path + headers), the server sends back a status line + headers + body, and the conversation ends — stateless, so every request must carry its own context. HTTPS is the same conversation inside an encrypted TLS tunnel negotiated before the first byte of HTTP flies, protecting it from anyone on the path.

How HTTP & HTTPS Works

  1. The browser opens a TCP connection to port 80 (HTTP) or 443 (HTTPS).
  2. HTTPS first runs a TLS handshake: certificates prove the server's identity, and both sides derive shared encryption keys.
  3. The client sends a request: METHOD + path + version (e.g. GET /index.html HTTP/1.1) plus headers like Host and Cookie.
  4. The server answers: status line (200 OK, 404 Not Found…) + headers (Content-Type, Cache-Control…) + the body.
  5. HTTP/1.1 keeps the connection alive for more requests; HTTP/2 multiplexes many over one; HTTP/3 moves the whole thing onto QUIC/UDP.

HTTP & HTTPS Worked Example

Try it: Play — watch a GET request cross the wire, the server respond, and compare with the HTTPS variant.

HTTP: the request and response cross in plain text — any router on the path can read (or alter!) them. HTTPS: two extra frames of TLS negotiation first, then identical HTTP flows — but encrypted so the path only sees noise.

Browserthe clientWeb serverexample.comthe internet — reads everythingSnooper 🔎router on pathGET /index.html HTTP/1.1—
plaintext HTTP encrypted HTTPS TLS handshake
Stage 1 / 3
HTTP REQUEST — plain text: “GET /index.html HTTP/1.1” + Host header. Every router on the path can read it.

HTTP & HTTPS: Key Facts to Remember

MethodsGET reads · POST submits · PUT replaces · DELETE removes — GET must be safe & idempotent
Status families1xx info · 2xx success · 3xx redirect · 4xx client error · 5xx server error
OverheadHTTPS adds 1–2 RTTs of handshake (1 with TLS 1.3 + session reuse) plus crypto CPU
Whereevery website and API on the internet — the most-used application protocol

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Cloud hosting for side projectsShip the portfolio project that gets you hired — free credits for new accounts.Claim credits Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses

See how packets really travel

Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.