Concepts / The web

The web

HTTP

Also called request, response, status code, header

The web's request and response protocol: plain text over TCP unless wrapped in TLS.

One request, one response, lines of text
One request, one response, lines of text

In HTTP/1.1 a request is a first line with the method, path and version, then headers. The response is a status line with a code such as 200, headers, a blank line and the body. All of it is readable text unless TLS wraps the connection.

HTTP is the web's protocol: a client sends a request over TCP and the server sends back one response. A request is a line such as GET /account, headers and an optional body; the response is a status (200, 404, 502), headers and a body. Over plain HTTP, without TLS, anyone on the path can read and change all of it.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab