Search tools...

HTTP Headers Reference

Searchable HTTP headers reference with security checker

Updated Mar 2026100% Private — runs in browser

Showing 69 of 69 headers

Content-Type
BothGeneral

Indicates the media type of the resource or the data being sent. For responses it tells the client how to interpret the body; for requests it tells the server the format of the submitted data.

Content-Type: application/json; charset=utf-8
Content-Length
BothGeneral

Indicates the size of the message body in bytes. Helps the recipient know when the body ends and is required for keep-alive connections when Transfer-Encoding is not used.

Content-Length: 3495
Content-Encoding
BothGeneral

Specifies the encoding (compression algorithm) applied to the body, so the recipient knows how to decode it. Common values are gzip, deflate, and br (Brotli).

Content-Encoding: gzip
Content-Language
BothGeneral

Describes the natural language(s) of the intended audience for the message body, useful for content negotiation and accessibility.

Content-Language: en-US
Transfer-Encoding
BothGeneral

Specifies the transfer encoding applied to the message body between nodes. The most common value is chunked, which allows streaming responses without knowing content length in advance.

Transfer-Encoding: chunked
Connection
BothGeneral

Controls whether the network connection stays open after the current transaction finishes. Use keep-alive to reuse the connection or close to terminate it.

Connection: keep-alive
Date
BothGeneral

Contains the date and time at which the message was originated. Servers must send this header in responses; it is expressed in HTTP-date format (RFC 7231).

Date: Wed, 26 Mar 2025 12:00:00 GMT
Via
BothGeneral

Added by proxies, both forward and reverse, to track message forwarding and avoid request loops. Lists each proxy and the protocol version it used.

Via: 1.1 vegur
WarningDeprecated
BothGeneral

Carries additional information about possible problems with a message that may not be reflected in the status code. Deprecated in favour of including warnings in the response body.

Warning: 110 anderson/1.3.37 "Response is Stale"
PragmaDeprecated
BothGeneral

An HTTP/1.0 header used mainly for backward compatibility. The only defined directive is no-cache, which has the same effect as Cache-Control: no-cache.

Pragma: no-cache
Accept
RequestRequest

Tells the server which content types the client can process, specified as MIME types with optional quality factors. The server should respond with one of the accepted types.

Accept: text/html, application/json;q=0.9, */*;q=0.8
Accept-Encoding
RequestRequest

Indicates which content-encoding (compression) algorithms the client understands. The server may use any of the listed encodings to compress the response body.

Accept-Encoding: gzip, deflate, br
Accept-Language
RequestRequest

Indicates the natural language and locale the client prefers. Servers use this for content negotiation and to serve localised responses when available.

Accept-Language: en-US,en;q=0.9,fr;q=0.7
Accept-CharsetDeprecated
RequestRequest

Advertises which character encodings the client understands. UTF-8 is universally supported so this header is rarely sent by modern browsers.

Accept-Charset: utf-8, iso-8859-1;q=0.5
Host
RequestRequest

Specifies the host and port number of the server to which the request is being sent. Required in all HTTP/1.1 requests; used by servers to select the correct virtual host.

Host: developer.mozilla.org
User-Agent
RequestRequest

A string that lets servers and network peers identify the application, operating system, vendor, and version of the requesting user agent.

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/124.0
Referer
RequestRequest

Contains the URL of the page that linked to the requested resource. Servers use it for analytics and access control. Note: the header name is a historical misspelling of "referrer".

Referer: https://example.com/page.html
Origin
RequestRequest

Indicates the origin (scheme, host, port) that caused the request. Sent with cross-origin requests and CORS preflight requests so the server can decide whether to allow access.

Origin: https://developer.mozilla.org
Cookie
RequestRequest

Sends stored HTTP cookies previously set by the server via Set-Cookie. Carries all cookies matching the current domain, path, and security attributes.

Cookie: session_id=abc123; theme=dark
Authorization
RequestAuthentication

Contains credentials to authenticate the client with the server. The value depends on the authentication scheme — commonly Basic (base64) or Bearer (JWT or OAuth token).

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
If-Match
RequestRequest

Makes the request conditional: the server only processes it if the resource's ETag matches one of the listed tags. Commonly used to prevent mid-air collision in concurrent edits.

If-Match: "737060cd8c284d8af7ad3082f209582d"
If-None-Match
RequestCaching

Makes the request conditional: the server returns 304 Not Modified if the resource ETag matches, allowing the client to use its cached copy and saving bandwidth.

If-None-Match: "737060cd8c284d8af7ad3082f209582d"
If-Modified-Since
RequestCaching

Makes the request conditional on the resource having been modified after the specified date. Returns 304 if unchanged, allowing the client to use the cached version.

If-Modified-Since: Wed, 21 Oct 2015 07:28:00 GMT
If-Unmodified-Since
RequestRequest

Makes the request conditional: the server processes it only if the resource has not been modified since the given date. Used to prevent overwrites of stale data.

If-Unmodified-Since: Wed, 21 Oct 2015 07:28:00 GMT
Range
RequestRequest

Requests only a portion of a resource, enabling partial GET requests. Used for resumable downloads and video streaming. The server responds with 206 Partial Content.

Range: bytes=200-1023
TE
RequestRequest

Specifies which transfer encodings the client is willing to accept in the response, and whether it supports chunked transfer with trailers.

TE: trailers, deflate;q=0.5
Expect
RequestRequest

Indicates that the client requires particular server behaviours before sending the request body. The only defined value is 100-continue, which asks the server to confirm it will accept the upload.

Expect: 100-continue
From
RequestRequest

Contains an internet email address of the human user who controls the requesting user agent, primarily used by web crawlers to allow site operators to contact the bot owner.

From: webmaster@example.com
Max-Forwards
RequestRequest

Used with TRACE and OPTIONS methods to limit the number of times the request can be forwarded by proxies. Each proxy decrements the value before forwarding.

Max-Forwards: 10
Proxy-Authorization
RequestAuthentication

Contains credentials to authenticate the client with a proxy server, analogous to Authorization but directed at an intermediate proxy rather than the origin server.

Proxy-Authorization: Basic dXNlcjpwYXNzd29yZA==
Upgrade
RequestRequest

Allows the client to request a protocol upgrade, for example from HTTP/1.1 to WebSocket. The server confirms with a 101 Switching Protocols response.

Upgrade: websocket
X-Forwarded-For
RequestRequest

A de-facto standard header added by proxies and load balancers to identify the originating IP address of the client. Contains a comma-separated list as the request passes through multiple proxies.

X-Forwarded-For: 203.0.113.195, 70.41.3.18
X-Requested-With
RequestRequest

Identifies Ajax requests. Commonly sent as "XMLHttpRequest" by JavaScript frameworks to distinguish asynchronous requests from full page loads on the server side.

X-Requested-With: XMLHttpRequest
Allow
ResponseResponse

Lists the HTTP methods supported by the resource. Returned in a 405 Method Not Allowed response to inform the client which methods are valid for this endpoint.

Allow: GET, POST, HEAD
Content-Disposition
ResponseResponse

Indicates whether the response body should be displayed inline in the browser or treated as an attachment (file download). Also sets the suggested filename for downloads.

Content-Disposition: attachment; filename="report.pdf"
Content-Location
ResponseResponse

Indicates an alternate location for the returned data, providing a direct URL to the resource when content negotiation is used and the URL differs from the request URL.

Content-Location: /documents/foo.json
Content-Range
ResponseResponse

Indicates where a partial message body fits within the full resource. Sent with 206 Partial Content responses to tell the client the byte range and total size returned.

Content-Range: bytes 200-1023/146515
ETag
ResponseCaching

A unique identifier for a specific version of a resource, typically a hash of the content. Clients store the ETag and send it in If-None-Match on subsequent requests to enable conditional caching.

ETag: "737060cd8c284d8af7ad3082f209582d"
Expires
ResponseCaching

Specifies the date and time after which the response is considered stale. Superseded by Cache-Control max-age when both are present. The value 0 or a past date makes the resource immediately stale.

Expires: Thu, 01 Jan 2026 00:00:00 GMT
Last-Modified
ResponseCaching

Contains the date and time the server believes the resource was last changed. Used by clients in If-Modified-Since requests for conditional caching.

Last-Modified: Wed, 21 Oct 2015 07:28:00 GMT
Location
ResponseResponse

Indicates the URL to redirect to for 3xx responses, or the URL of the newly created resource for 201 Created responses.

Location: /new-resource/123
Proxy-Authenticate
ResponseAuthentication

Defines the authentication method that should be used to gain access to a resource behind a proxy, returned with a 407 Proxy Authentication Required response.

Proxy-Authenticate: Basic realm="Access to internal site"
Retry-After
ResponseResponse

Indicates how long the client should wait before making a follow-up request. Used with 503 Service Unavailable and 429 Too Many Requests responses.

Retry-After: 120
Server
ResponseResponse

Contains information about the software used by the origin server to handle the request. Often intentionally vague to avoid revealing exploitable version details.

Server: nginx/1.24.0
Set-Cookie
ResponseResponse

Sends a cookie from the server to the user agent. Multiple Set-Cookie headers can appear in one response. Supports directives like Secure, HttpOnly, SameSite, Path, Domain, and Max-Age.

Set-Cookie: session=abc123; Path=/; HttpOnly; Secure; SameSite=Lax
Vary
ResponseResponse

Indicates which request headers were used by the server to select the response. Caches must store separate variants for each unique combination of the listed header values.

Vary: Accept-Encoding, Accept-Language
WWW-Authenticate
ResponseAuthentication

Defines the authentication scheme that should be used to access the resource, returned with 401 Unauthorized. Tells the client what credentials format to supply in the Authorization header.

WWW-Authenticate: Bearer realm="example", error="invalid_token"
Age
ResponseCaching

Indicates the time in seconds the response has been in a proxy cache. A value of 0 means the response was fetched directly from the origin server.

Age: 24
Alt-Svc
ResponseResponse

Advertises that another network location (alternative service) can be used to access the same resource, enabling protocol upgrades like HTTP/3 over QUIC.

Alt-Svc: h3=":443"; ma=86400
Strict-Transport-Security
ResponseSecurity

Forces browsers to use HTTPS for all future requests to the domain for the specified duration. Prevents SSL-stripping attacks. The preload directive allows inclusion in browser HSTS preload lists.

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Content-Security-Policy
ResponseSecurity

Defines approved sources for content (scripts, styles, images, etc.) that the browser may load. Mitigates XSS and data-injection attacks by blocking content from unapproved origins.

Content-Security-Policy: default-src 'self'; script-src 'self' cdn.example.com
X-Content-Type-Options
ResponseSecurity

Prevents browsers from MIME-type sniffing — guessing a different content type than declared. The only valid value is nosniff, which blocks requests where the type doesn't match.

X-Content-Type-Options: nosniff
X-Frame-Options
ResponseSecurity

Controls whether the page can be embedded in a frame, iframe, or object. Prevents clickjacking attacks. Superseded by Content-Security-Policy frame-ancestors directive.

X-Frame-Options: DENY
X-XSS-ProtectionDeprecated
ResponseSecurity

Enables the Cross-Site Scripting (XSS) filter built into older browsers. Modern browsers have dropped this feature in favour of Content-Security-Policy; the header is now largely obsolete.

X-XSS-Protection: 1; mode=block
Permissions-Policy
ResponseSecurity

Allows a site to control which browser features and APIs can be used in the page and in iframes, such as camera, microphone, geolocation, and payment requests.

Permissions-Policy: geolocation=(), camera=(), microphone=(self)
Referrer-Policy
ResponseSecurity

Controls how much referrer information is included in the Referer header when navigating or loading resources. Stricter policies protect user privacy by limiting URL leakage.

Referrer-Policy: strict-origin-when-cross-origin
Cross-Origin-Embedder-PolicyExperimental
ResponseSecurity

Prevents a document from loading cross-origin resources that don't explicitly grant permission. Required (alongside COOP) to enable powerful isolation features like SharedArrayBuffer.

Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-PolicyExperimental
ResponseSecurity

Allows you to ensure that a top-level document does not share a browsing context group with cross-origin documents, isolating it from potential Spectre-style attacks.

Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy
ResponseSecurity

Signals that the browser should block no-cors cross-origin or cross-site requests to the resource, preventing cross-origin reads of sensitive resources like images or JSON.

Cross-Origin-Resource-Policy: same-site
Access-Control-Allow-Origin
ResponseCORS

Specifies which origin is permitted to access the resource. Use a specific origin for credentialed requests, or * to allow all origins for public resources.

Access-Control-Allow-Origin: https://example.com
Access-Control-Allow-Methods
ResponseCORS

Specifies which HTTP methods are allowed in CORS requests to the resource. Returned in preflight (OPTIONS) responses to inform the browser what methods the client may use.

Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Headers
ResponseCORS

Indicates which HTTP headers can be used during the actual CORS request. Returned in preflight responses when the request includes Access-Control-Request-Headers.

Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With
Access-Control-Allow-Credentials
ResponseCORS

Indicates whether the response can be shared with JavaScript when the request's credentials (cookies, HTTP auth) are included. Must be true for credentialed cross-origin requests to work.

Access-Control-Allow-Credentials: true
Access-Control-Max-Age
ResponseCORS

Indicates how long (in seconds) the results of a preflight request can be cached by the browser, avoiding repeated OPTIONS calls for subsequent requests.

Access-Control-Max-Age: 86400
Access-Control-Expose-Headers
ResponseCORS

Lists response headers (beyond the CORS-safe-listed defaults) that browsers are allowed to access from JavaScript in a cross-origin context.

Access-Control-Expose-Headers: X-Custom-Header, X-Request-ID
Access-Control-Request-Headers
RequestCORS

Used during a CORS preflight OPTIONS request to tell the server which HTTP headers the actual request will include, so the server can confirm they are permitted.

Access-Control-Request-Headers: Content-Type, Authorization
Access-Control-Request-Method
RequestCORS

Used in CORS preflight OPTIONS requests to notify the server which HTTP method will be used in the actual request, so the server can confirm it is permitted.

Access-Control-Request-Method: POST
Cache-Control
BothCaching

Holds directives (instructions) for both requests and responses that control caching behaviour in browsers and shared caches (proxies, CDNs). One of the most important headers for web performance.

Cache-Control: max-age=3600, must-revalidate
Clear-Site-Data
ResponseCaching

Clears browsing data (cookies, storage, cache) associated with the requesting website. Useful for sign-out flows to ensure all locally stored data is purged.

Clear-Site-Data: "cache", "cookies", "storage"

HTTP Headers Reference कसरी प्रयोग गर्ने

  1. 1

    Use the search bar at the top to instantly filter headers by name or description — results update as you type.

  2. 2

    Click a category pill (General, Request, Response, Security, CORS, Caching, Authentication) to narrow results to that group.

  3. 3

    Use the type tabs (All, Request, Response, Both) to filter by where each header is used in an HTTP exchange.

  4. 4

    Click any header card to expand it and reveal the full syntax pattern and additional details.

  5. 5

    Click the copy button on a header card to copy the header name to your clipboard for immediate use.

  6. 6

    Switch to the Security Checker tab, paste raw HTTP response headers into the text area, and click Analyze.

  7. 7

    Review the security score and the list of present (green) vs missing (red) security headers with severity labels.

  8. 8

    Switch to the Status Codes tab to browse HTTP status codes by range, or use the search box to find a specific code.

HTTP Headers Reference बारेमा

Complete HTTP headers reference — browse, search, and learn about all standard HTTP request and response headers. Each header includes a description, syntax examples, common values, and browser compatibility notes.

Key Features

  • Complete Reference: All standard HTTP request, response, and entity headers.
  • Search & Filter: Find any header instantly by name or keyword.
  • Categorized: Headers organized by type — authentication, caching, CORS, security, and more.
  • Syntax Examples: Real-world examples for every header with common values.
  • Security Headers: Detailed coverage of CSP, HSTS, X-Frame-Options, and other security headers.

Who Is This For?

Backend developers configuring server responses, frontend developers debugging API calls, DevOps engineers setting up security headers, and students learning HTTP protocol fundamentals.

Privacy & Security

Runs 100% in your browser — no signup, no uploads, no data stored.

HTTP Headers Reference बारेमा बारम्बार सोधिने प्रश्नहरू

सम्बन्धित उपकरणहरू