← Web Basics

Anatomy of an HTTP Request

Request = method + path + version + headers + optional body. Response = status line + headers + body.

Families: 2xx success, 3xx redirect, 4xx client error (401/403/404), 5xx server error. curl -i URL shows response headers; robots.txt shows what a site would rather you didn't index. Headers often leak more than the body.