Skip to content
hateitall

HTTP Headers Reference

Look up what a header does, which side sends it and how to write it, in seconds.

Processed locallyIn: TextOut: Reference

Loading tool…

How to use http headers reference

  1. Type part of a header name or a topic such as cache or cors.

  2. Filter by request or response, or by topic.

  3. Read what the header does and copy the example.

What this tool does

  • Covers caching, conditional requests, content, negotiation, auth, cookies, CORS, security, fetch metadata, client hints, connections, ranges and proxies.
  • Each entry names the defining RFC or specification.
  • Marks headers that browsers do not let scripts set, and deprecated ones such as X-XSS-Protection and Expect-CT.
  • Every example is a complete header line you can copy.

How the result is verified

Descriptions follow RFC 9110 (HTTP semantics), RFC 9111 (caching), the WHATWG Fetch standard and the other specifications named on each entry.

Frequently asked questions

Are HTTP header names case sensitive?

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

Why can my JavaScript not set the Cookie or Origin header?

The Fetch standard reserves those for the browser so pages cannot impersonate other sites. They are marked in the list.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Every status code with its meaning, when to use it and its RFC

Number · Text→ ReferenceLight on device

Find the MIME type for an extension, or the extensions for a type

Text · Files→ ReferenceLight on device

Send GET, POST, PUT, PATCH and DELETE requests from your browser

URL · JSON · Text +→ ResponseModerate on device

Turn a curl command into fetch, Axios, Python or HTTPie, and back

cURL · JavaScript→ JavaScriptLight on device