Reference

HTTP & network inspection

Decode requests, responses, browser rules and network diagnostics.

Scope and conventions

Wire examples use HTTP/1.1 notation; HTTP/2 and HTTP/3 encode it differently. Commands use a Unix-like shell and illustrative example.test hosts. Browser security behavior is labeled separately from HTTP and command-line clients.

Headers & bodies

Representation type versus requested type

HTTP & tools

Content-Type describes the attached representation. Accept states response media types the client can handle. JSON text is still parsed and validated by the application.

Fragment

HTTP & tools · Representation type versus requested type
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
Content-Type: application/json
Accept: application/json

Separate compression from message framing

HTTP & tools

Content-Encoding: gzip describes representation compression. Content-Length counts octets, not characters. HTTP/1.1 chunked transfer coding frames a streamed message.

Fragment

HTTP & tools · Separate compression from message framing
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
Content-Encoding: gzip
Vary: Accept-Encoding

Do not author competing Content-Length and Transfer-Encoding framing. Let a trusted HTTP library frame messages. HTTP/2 and HTTP/3 do not use chunked transfer coding.

Recognize bearer credentials

HTTP & tools

Authorization carries credentials for the target server. A bearer token grants authority through possession; HTTPS protects it in transit.

Fragment

HTTP & tools · Recognize bearer credentials
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
Authorization: Bearer TOKEN

TOKEN is a placeholder. Do not put credentials in URLs or diagnostic logs. Authentication does not replace object-level authorization.