Skip to main content
ToolStack

HTTP Headers

Searchable reference for common HTTP request, response, general, and entity headers — with example values and links to MDN. Free, private, browser-only.

97 of 97 headers

Request

38 entries
HeaderDescriptionExample
AcceptMedia types that are acceptable for the response.text/html, application/json;q=0.9
Accept-CharsetCharacter sets that are acceptable.utf-8
Accept-EncodingList of acceptable encodings (gzip, br, deflate).gzip, deflate, br
Accept-LanguageList of acceptable human languages for response.en-US,en;q=0.5
AuthorizationAuthentication credentials for HTTP authentication.Bearer eyJhbGciOi...
DNTDo Not Track. Indicates the user's tracking preference.1
ExpectExpected behaviors that must be supported by the server in order to properly handle this request.100-continue
ForwardedDiscloses original information of a client connecting to a web server through an HTTP proxy.for=192.0.2.60;proto=http;by=203.0.113.43
FromThe email address of the user making the request.webmaster@example.com
HostThe domain name of the server (and optionally the TCP port number).developer.mozilla.org
If-MatchMake request methods conditional on entity tags."bfc13a64729c4290ef5b2c2730249af3"
If-Modified-SinceUsed to make a method conditional on the resource having been modified since a date.Wed, 21 Oct 2015 07:28:00 GMT
If-None-MatchPerforms the request only if no entity tags match."bfc13a64729c4290ef5b2c2730249af3"
If-RangeIf unchanged, send the missing range; otherwise send the entire entity."abc123"
If-Unmodified-SinceSends the response only if the resource has not been modified since the specified date.Wed, 21 Oct 2015 07:28:00 GMT
Max-ForwardsLimit the number of times the message can be forwarded by proxies/gateways.10
OriginIndicates the origin (scheme, hostname, port) that caused the request.https://example.com
Proxy-AuthorizationAuthentication credentials for connecting to a proxy.Basic YWxhZGRpbjpvcGVuc2VzYW1l
RangeRequest only part of an entity. Bytes are numbered from 0.bytes=200-1000, 2000-6576
RefererThe address of the previous web page from which a link to the currently requested page was followed.https://example.com/page
TESpecifies the transfer encodings the user agent is willing to accept.trailers, deflate
User-AgentIdentifies the user agent (typically a browser) originating the request.Mozilla/5.0 (Windows NT 10.0; Win64; x64) ...
Sec-Fetch-SiteIndicates the relationship between a request initiator's origin and its target's origin.same-origin
Sec-Fetch-ModeIndicates the request's mode (e.g., navigate, cors, no-cors).navigate
Sec-Fetch-UserIndicates whether a navigation was initiated by user activation.?1
Sec-Fetch-DestIndicates the request's destination (e.g., document, image, script).document
Sec-CH-UAUser-Agent client hint giving the user agent's brand."Chromium";v="120", "Not(A:Brand";v="24"
Sec-CH-UA-MobileUser-Agent client hint indicating whether the user agent is on a mobile device.?0
Sec-CH-UA-PlatformUser-Agent client hint indicating the platform/OS."Windows"
Save-DataIndicates the user prefers reduced data usage.on
Upgrade-Insecure-RequestsSends a signal to the server expressing the client's preference for an encrypted and authenticated response.1
Access-Control-Request-MethodUsed in CORS preflight to indicate which HTTP method will be used.POST
Access-Control-Request-HeadersUsed in CORS preflight to indicate which headers will be used.Content-Type, X-Custom-Header
X-Requested-WithNon-standard header used to identify Ajax requests.XMLHttpRequest
X-Forwarded-ForDe-facto standard for identifying the originating IP through a proxy.203.0.113.195, 70.41.3.18
X-Forwarded-HostDe-facto standard for identifying the original host requested by the client.example.com
X-Forwarded-ProtoDe-facto standard for identifying the protocol the client used to connect.https

Response

40 entries
HeaderDescriptionExample
Accept-RangesIndicates if the server supports range requests, and what unit can be used.bytes
AgeThe time in seconds the object has been in a proxy cache.12
AllowLists the set of methods supported by a resource.GET, POST, HEAD
Alt-SvcUsed to indicate that an alternative service is available for the resource.h3=":443"; ma=2592000
Clear-Site-DataClears browsing data (cookies, storage, cache) associated with the requesting site."cache", "cookies"
Content-DispositionIndicates whether the response should be displayed inline or downloaded.attachment; filename="report.pdf"
Content-Security-PolicyControls resources the user agent is allowed to load. Helps mitigate XSS.default-src 'self'; img-src https:
Content-Security-Policy-Report-OnlySame as CSP but reports violations without blocking.default-src 'self'; report-uri /csp
Cross-Origin-Embedder-PolicyPrevents a document from loading any cross-origin resources that don't explicitly grant permission.require-corp
Cross-Origin-Opener-PolicyAllows you to ensure a top-level document doesn't share a browsing context group with cross-origin documents.same-origin
Cross-Origin-Resource-PolicyConveys a desire that the response only be loaded by same-origin/site/cross-origin requests.same-origin
ETagA version identifier for a specific representation of the resource."33a64df551425fcc55e4d42a148795d9f25f89d4"
ExpiresDate/time after which the response is considered stale.Wed, 21 Oct 2025 07:28:00 GMT
Last-ModifiedThe last modification date of the resource, used to compare with If-Modified-Since.Tue, 15 Nov 2024 12:45:26 GMT
LocationUsed in redirection or when a new resource has been created./index.html
Permissions-PolicyAllows or denies the use of browser features in a document or its frames.geolocation=(), camera=(self)
Proxy-AuthenticateDefines the authentication method that should be used to gain access to a resource behind a proxy.Basic realm="Access to internal site"
Referrer-PolicyControls how much referrer information should be included with requests.no-referrer-when-downgrade
Retry-AfterIndicates how long to wait before making a follow-up request.120
ServerInformation about the software used by the origin server.nginx/1.27.1
Server-TimingCommunicates one or more metrics and descriptions for the given request-response cycle.db;dur=53, app;dur=47.2
SourceMapLinks generated code to a source map./scripts/app.js.map
Strict-Transport-SecurityForce communication using HTTPS instead of HTTP (HSTS).max-age=63072000; includeSubDomains; preload
Timing-Allow-OriginSpecifies origins that are allowed to see values of attributes retrieved via Resource Timing API.*
VaryDetermines how to match request headers to decide whether a cached response can be reused.Accept-Encoding, User-Agent
WWW-AuthenticateDefines the authentication method that should be used to gain access to a resource.Basic realm="Access to the staging site"
X-Content-Type-OptionsDisables MIME-sniffing and forces the browser to use the type given in Content-Type.nosniff
X-DNS-Prefetch-ControlControls DNS prefetching, allowing browsers to proactively perform domain name resolution.on
X-Frame-OptionsIndicates whether a browser should be allowed to render a page in a <frame>, <iframe>, etc.DENY
X-XSS-ProtectionLegacy header that enabled cross-site scripting filtering. Deprecated.0
X-Powered-BySpecifies the technology supporting the web application. Often removed for security.PHP/8.3.0
X-Robots-TagControls how search engines crawl and index the page or asset.noindex, nofollow
Access-Control-Allow-OriginIndicates whether the response can be shared with requesting code from the given origin.*
Access-Control-Allow-CredentialsTells browsers whether to expose the response when credentials flag is true.true
Access-Control-Allow-HeadersLists headers that can be used in the actual request during preflight.Content-Type, Authorization
Access-Control-Allow-MethodsSpecifies the methods allowed when accessing the resource in CORS.GET, POST, OPTIONS
Access-Control-Expose-HeadersLists headers that browsers are allowed to expose to scripts.Content-Length, X-Custom-Header
Access-Control-Max-AgeIndicates how long the results of a preflight request can be cached.86400

General

10 entries
HeaderDescriptionExample
Cache-ControlDirectives for caching mechanisms in both requests and responses.no-cache, max-age=3600
ConnectionControls whether the network connection stays open after the current transaction finishes.keep-alive
DateThe date and time at which the message was originated.Tue, 15 Nov 2024 08:12:31 GMT
Keep-AliveAllows the sender to hint about how the connection may be used.timeout=5, max=1000
PragmaImplementation-specific header that may have various effects along the request-response chain. Mostly superseded by Cache-Control.no-cache
TrailerLists the set of header fields present in the trailer of a message encoded with chunked transfer coding.Expires
Transfer-EncodingThe form of encoding used to safely transfer the entity to the user.chunked
UpgradeAllows the client to specify additional protocols that it supports and would like to use.websocket
ViaAdded by proxies, both forward and reverse, to track message forwards.1.1 vegur
WarningGeneral warning information about possible problems.199 Miscellaneous warning

Entity

9 entries
HeaderDescriptionExample
Content-EncodingUsed to compress the media-type. The list of accepted encodings is in Accept-Encoding.gzip
Content-LanguageDescribes the human language(s) intended for the audience.en-US
Content-LengthThe size of the resource, in decimal number of bytes.3495
Content-LocationIndicates an alternate location for the returned data./documents/foo.html
Content-MD5A Base64-encoded binary MD5 sum of the content of the response (legacy).Q2hlY2sgSW50ZWdyaXR5IQ==
Content-RangeIndicates where in a full body message a partial message belongs.bytes 200-1000/67589
Content-TypeIndicates the media type of the resource.application/json; charset=utf-8
DigestProvides a digest of the requested resource.sha-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=
Want-DigestUsed by clients to indicate the digest algorithms they support.sha-256;q=1, sha-512;q=0.5

Header types

  • Request. Sent by the client to indicate request context (auth, caching, content negotiation).
  • Response. Sent by the server with information about the response or the server itself.
  • General. Apply to both request and response messages, but not to the message body.
  • Entity. Describe the body (representation) of a request or response (length, type, encoding).