Skip to content
Toolbento

HTTP headers reference

What every common HTTP request and response header does, grouped and searchable.

Everything stays on this device

HTTP headers reference runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

55 headers.

Request

Accept
The formats the client can read, such as application/json.
Accept-Encoding
The compression the client understands: gzip, br, zstd.
Accept-Language
The languages the reader prefers, in order.
Authorization
Credentials for the request, such as Bearer followed by a token.
Cookie
The cookies the browser holds for this site.
Host
The domain the request is for. Required in HTTP/1.1.
If-Match
Carry out the request only if the resource still has this ETag. Stops lost updates.
If-Modified-Since
Send the body only if it changed after this date. Otherwise 304.
If-None-Match
Send the body only if its ETag differs from this one. Otherwise 304.
Origin
The site that started the request. The server reads it to decide on CORS.
Range
Ask for part of a file, such as bytes=0-1023.
Referer
The page the request came from. The spelling mistake is part of the standard.
User-Agent
A string naming the browser or tool that sent the request.

Request and response

Content-Type
The format of the body, such as application/json; charset=utf-8.
Content-Length
The size of the body in bytes.
Content-Encoding
How the body is compressed: gzip, br, zstd.
Cache-Control
Caching rules, such as max-age=3600, no-store or immutable.
Connection
Whether to keep the connection open. Not used in HTTP/2 and later.
Date
When the message was sent.

Response

Age
How many seconds the response has spent in a cache.
Allow
The methods this address supports. Sent with 405.
Content-Disposition
Show the body in the page or download it, with a file name.
Content-Language
The language the body is written in.
Content-Range
Which bytes of the file this partial response holds.
ETag
A version tag for the resource. Used with If-None-Match and If-Match.
Expires
A date after which the response is stale. Cache-Control max-age wins if both are set.
Last-Modified
When the resource last changed.
Link
Related resources, such as preload hints or the next page of results.
Location
Where to go next: the target of a redirect, or the address of a new resource.
Retry-After
How long to wait before trying again. Sent with 429 and 503.
Server
The software that answered. Often hidden or shortened.
Set-Cookie
Store a cookie, with flags such as HttpOnly, Secure and SameSite.
Vary
The request headers that change the response, so caches keep separate copies.
WWW-Authenticate
How to sign in. Sent with 401.

CORS

Access-Control-Allow-Origin
The site allowed to read the response, or * for any.
Access-Control-Allow-Methods
The methods allowed across sites. Sent in answer to a preflight.
Access-Control-Allow-Headers
The request headers allowed across sites. Sent in answer to a preflight.
Access-Control-Allow-Credentials
Whether cookies and credentials may be sent across sites.
Access-Control-Expose-Headers
The response headers a script on another site may read.
Access-Control-Max-Age
How long the browser may remember the answer to a preflight.
Access-Control-Request-Method
In a preflight: the method the real request will use.
Access-Control-Request-Headers
In a preflight: the headers the real request will send.

Security

Content-Security-Policy
Which scripts, styles, images and connections the page may use.
Strict-Transport-Security
Tell the browser to use https for this site from now on.
X-Content-Type-Options
With nosniff, stops the browser guessing a type other than Content-Type.
X-Frame-Options
Whether the page may be shown inside a frame. Now covered by frame-ancestors in CSP.
Referrer-Policy
How much of the address is sent in Referer.
Permissions-Policy
Which browser features, such as camera or location, the page may use.
Cross-Origin-Opener-Policy
Keeps the page apart from windows it opens, or that open it.
Cross-Origin-Resource-Policy
Which sites may load this resource.

Proxies

X-Forwarded-For
The address of the client, added by a proxy or load balancer.
X-Forwarded-Proto
Whether the client connected to the proxy with http or https.
X-Forwarded-Host
The host the client asked for, before the proxy changed it.
Forwarded
The standard header that holds what the X-Forwarded ones do.
Via
The proxies the message passed through.

Missing a feature or found a bug in HTTP headers reference? Tell me on X (@_andrewtran) or by email.

How to use HTTP headers reference

  1. Type a header name or a topic such as cors or cache.
  2. Read what each matching header does.
  3. Copy a header name with its Copy button.

Questions and answers

Are header names case sensitive?

No. Content-Type and content-type are the same header. HTTP/2 and later send all names in lower case.

What happened to the X- prefix?

It was meant for unofficial headers, and has been discouraged since 2012. Old ones such as X-Forwarded-For remain in wide use.

Esc

Loading tools