HTTP Headers
Request and response headers with their meaning, an example value and the defining spec.
About HTTP Headers
A searchable list of about 150 HTTP request and response headers with what each one means, an example value, the spec that defines it and deprecation notes.
How to use
- Type in the filter: a header name (
cache-control), a topic (cors,cookie), a spec (RFC 9111) ordeprecated. Several words narrow the list, in any order. - Use Request or Response to hide headers that only travel the other way. Headers used in both directions stay in both views.
- Read the meaning and the example line under it. Copy copies the header name.
What it does
| Group | Examples |
|---|---|
| Request and response context | Host, User-Agent, Referer, Location, Retry-After, Link |
| Representation and content negotiation | Content-Type, Content-Encoding, Accept, Vary |
| Caching, conditional and range requests | Cache-Control, ETag, If-None-Match, Range |
| Authentication and cookies | Authorization, WWW-Authenticate, Cookie, Set-Cookie |
| CORS and security | Access-Control-Allow-Origin, Content-Security-Policy, Strict-Transport-Security |
| Connection, transfer and proxies | Connection, Transfer-Encoding, Forwarded, X-Forwarded-For, Via |
| Client hints and fetch metadata | Accept-CH, Sec-CH-UA, Sec-Fetch-Site |
| WebSocket and diagnostics | Sec-WebSocket-Key, Server-Timing, traceparent |
- Every row gives the direction (request, response or both), a one-sentence meaning, a realistic example and the defining document: RFC 9110 for HTTP semantics, RFC 9111 for caching, RFC 6265 for cookies, the Fetch and HTML standards, CSP and others, with a section number for the core RFCs.
- deprecated marks headers that still turn up but should not be sent by new code, among them
Pragma,Warning,X-XSS-Protection,Expect-CT,Public-Key-PinsandFeature-Policy. - Non-standard in the Spec column marks headers that no standard defines but that are widely used, such as
X-Forwarded-ForandX-Request-ID.
What it does not do:
- It is not the complete IANA field name registry, which is longer. Rare and WebDAV-only headers are left out, as are most vendor-specific ones.
- It does not list every directive or value a header accepts. One example is shown for each.
- It does not send a request or inspect the headers of a live site.
Example
Filter: rfc 9111
→ Cache-Control Request and response public, max-age=31536000, immutable
→ Expires Response Wed, 21 Oct 2015 07:28:00 GMT
→ Age Response 3600
→ Pragma Request no-cache deprecated
→ Warning Request and response 110 - "Response is Stale" deprecated
Privacy
The table is part of the page. Filtering runs in the browser; no request is made and nothing is stored.
Frequently asked questions
- What is the difference between request and response headers?
- Request headers are sent by the client and describe what it wants and can accept, such as Accept, Authorization and Cookie. Response headers are sent by the server and describe the result, such as Location, Set-Cookie and ETag. A few, including Content-Type and Cache-Control, are used in both.
- Are HTTP header names case sensitive?
- No. Field names are case-insensitive, so Content-Type and content-type are the same header, and HTTP/2 and HTTP/3 always send names in lowercase. Values can be case-sensitive, depending on the header.
- Which HTTP headers are deprecated?
- Pragma (use Cache-Control), Warning, Accept-Charset, Content-MD5 and Digest (replaced by Content-Digest and Repr-Digest), X-XSS-Protection, Expect-CT, Public-Key-Pins, Feature-Policy (now Permissions-Policy), Report-To (now Reporting-Endpoints) and DNT. Type "deprecated" in the filter to list them.
- What does the X- prefix on a header mean?
- It was a convention for experimental or private headers. RFC 6648 retired the convention in 2012 because such headers kept becoming permanent, but many remain in everyday use, including X-Forwarded-For, X-Content-Type-Options and X-Frame-Options.