Level OneBeginnerMerged
How HTTP works
4 chapters · 9 bytes · ~19 min
From typing a URL to getting a page back, one step at a time.
Also on the Web Path. Finish it once, it counts on both.
You'll learn
- HTTP is plain text: a client sends a request, the server sends one response.
- A URL is scheme, host, port, path, query and fragment. The fragment stays in the browser.
- The method says what to do: GET reads, POST creates, PATCH edits, DELETE removes.
- Headers carry the extras: Content-Type, Accept, Authorization and cookies.
- Status codes by first digit: 2xx worked, 3xx look elsewhere, 4xx your mistake, 5xx theirs.