Representation type versus requested type
#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
Reference
Decode requests, responses, browser rules and network diagnostics.
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.
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
Content-Encoding: gzip describes representation compression. Content-Length counts octets, not characters. HTTP/1.1 chunked transfer coding frames a streamed message.
Fragment
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.
Authorization carries credentials for the target server. A bearer token grants authority through possession; HTTPS protects it in transit.
Fragment
TOKEN is a placeholder. Do not put credentials in URLs or diagnostic logs. Authentication does not replace object-level authorization.