HTTP Headers Reference

Detailed explanations of HTTP request/response headers for quick reference.

53 Headers

AcceptRequestRFC 7231

Indicates the media types (MIME types) that the client can handle

Example:

Accept: text/html, application/json
Accept-EncodingRequestRFC 7231

Indicates the content encoding methods that the client supports

Example:

Accept-Encoding: gzip, deflate, br
Accept-LanguageRequestRFC 7231

Indicates the natural language preferences of the client

Example:

Accept-Language: zh-CN,zh;q=0.9,en;q=0.8
Accept-CharsetRequestRFC 7231

Indicates the character sets that the client supports

Example:

Accept-Charset: utf-8, iso-8859-1
Content-TypeCommonRFC 7231

Indicates the media type of the request or response body

Example:

Content-Type: application/json; charset=utf-8
Content-EncodingResponseRFC 7231

Indicates the encoding method used for the response body

Example:

Content-Encoding: gzip
Content-LengthCommonRFC 7230

Indicates the byte length of the request or response body

Example:

Content-Length: 1234
Content-DispositionResponseRFC 6266

Indicates how the response content should be displayed (inline or as an attachment download)

Example:

Content-Disposition: attachment; filename="file.pdf"
Content-RangeResponseRFC 7233

Indicates the position of a partial response within the full response

Example:

Content-Range: bytes 0-1023/10240
Cache-ControlCommonRFC 7234

Defines caching mechanism instructions for requests and responses

Example:

Cache-Control: max-age=3600, public
ETagResponseRFC 7232

A specific version identifier for a resource

Example:

ETag: "33a64df551425fcc55e4d42a148795d9f25f89d4"
If-None-MatchRequestRFC 7232

Makes a request conditional, returning the resource only if the ETag does not match

Example:

If-None-Match: "33a64df551425fcc55e4d42a148795d9f25f89d4"
If-Modified-SinceRequestRFC 7232

Makes a request conditional, returning the resource only if modified since the specified date

Example:

If-Modified-Since: Wed, 21 Oct 2025 07:28:00 GMT
Last-ModifiedResponseRFC 7232

Indicates the date and time the resource was last modified

Example:

Last-Modified: Wed, 21 Oct 2025 07:28:00 GMT
ExpiresResponseRFC 7234

Indicates the date/time after which the response is considered stale

Example:

Expires: Thu, 01 Dec 2025 16:00:00 GMT
AuthorizationRequestRFC 7235

Contains credentials used to authenticate the user identity to the server

Example:

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
WWW-AuthenticateResponseRFC 7235

Defines the authentication method used to access the resource

Example:

WWW-Authenticate: Bearer realm="api", error="invalid_token"
Proxy-AuthorizationRequestRFC 7235

Contains credentials used to authenticate to the proxy server

Example:

Proxy-Authorization: Basic dXNlcjpwYXNz
Strict-Transport-SecurityResponseRFC 6797

Instructs the browser to only access the current site via HTTPS (HSTS)

Example:

Strict-Transport-Security: max-age=31536000; includeSubDomains
Content-Security-PolicyResponseCSP Level 3

Controls the resources the user agent is allowed to load for a page (CSP)

Example:

Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'
X-Content-Type-OptionsResponse

Prevents the browser from performing MIME type sniffing on the response

Example:

X-Content-Type-Options: nosniff
X-Frame-OptionsResponseRFC 7034

Indicates whether the browser is allowed to display the page in a frame/iframe

Example:

X-Frame-Options: DENY
X-XSS-ProtectionResponse

Enables the browser's built-in XSS filter (deprecated, CSP recommended instead)

Example:

X-XSS-Protection: 1; mode=block
Referrer-PolicyResponseReferrer Policy

Controls how much information the Referer header carries in requests

Example:

Referrer-Policy: strict-origin-when-cross-origin
Permissions-PolicyResponsePermissions Policy

Allows or denies the browser from using specific features and APIs

Example:

Permissions-Policy: camera=(), microphone=(), geolocation=(self)
Access-Control-Allow-OriginResponseFetch

Indicates whether the response can be shared with requesting code from a given origin

Example:

Access-Control-Allow-Origin: https://example.com
Access-Control-Allow-MethodsResponseFetch

In a preflight response, indicates the HTTP methods allowed

Example:

Access-Control-Allow-Methods: GET, POST, PUT, DELETE
Access-Control-Allow-HeadersResponseFetch

In a preflight response, indicates the request headers allowed

Example:

Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-CredentialsResponseFetch

Indicates whether the response can be exposed when credentials mode is include

Example:

Access-Control-Allow-Credentials: true
Access-Control-Max-AgeResponseFetch

Indicates how long the results of a preflight request can be cached

Example:

Access-Control-Max-Age: 86400
Access-Control-Request-MethodRequestFetch

Informs the server which HTTP method will be used in the actual request

Example:

Access-Control-Request-Method: DELETE
Access-Control-Request-HeadersRequestFetch

Informs the server which request headers will be carried in the actual request

Example:

Access-Control-Request-Headers: X-Custom-Header
OriginRequestRFC 6454

Indicates the protocol, host, and port from which the request originates

Example:

Origin: https://example.com
HostRequestRFC 7230

Specifies the host and port of the target server for the request

Example:

Host: www.example.com:8080
ConnectionCommonRFC 7230

Controls whether the network connection stays open after the transaction completes

Example:

Connection: keep-alive
Keep-AliveCommonRFC 7230

Indicates how long the sender wishes to keep the connection alive

Example:

Keep-Alive: timeout=5, max=1000
Transfer-EncodingResponseRFC 7230

Specifies the encoding form used to safely transfer the message body to the user

Example:

Transfer-Encoding: chunked
UpgradeCommonRFC 7230

Requests the server to upgrade to another protocol

Example:

Upgrade: websocket
CookieRequestRFC 6265

Contains HTTP cookies previously stored by the server via Set-Cookie header

Example:

Cookie: session_id=abc123; user=john
Set-CookieResponseRFC 6265

Sends cookies from the server to the user agent

Example:

Set-Cookie: session_id=abc123; Path=/; HttpOnly; Secure; SameSite=Strict
User-AgentRequestRFC 7231

Identifies the application type, OS, vendor, and version of the user agent software

Example:

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
RefererRequestRFC 7231

Contains the absolute or partial address of the page making the request

Example:

Referer: https://example.com/page.html
LocationResponseRFC 7231

Indicates the target URL for a redirect

Example:

Location: /new-page
Retry-AfterResponseRFC 7231

Informs the client how long to wait before making another request

Example:

Retry-After: 120
ServerResponseRFC 7231

Contains software information about the origin server that handled the request

Example:

Server: nginx/1.24.0
DateCommonRFC 7231

The date and time at which the message was originated

Example:

Date: Wed, 21 Oct 2025 07:28:00 GMT
VaryResponseRFC 7231

Determines how to match request headers to decide whether a cached response can be used

Example:

Vary: Accept-Encoding, Origin
X-Request-IDCommon

A unique identifier used to trace requests

Example:

X-Request-ID: 550e8400-e29b-41d4-a716-446655440000
X-Forwarded-ForRequestRFC 7239

Identifies the originating IP connecting through a proxy or load balancer

Example:

X-Forwarded-For: 203.0.113.50, 70.41.3.18
X-Forwarded-ProtoRequest

Identifies the protocol used between the client and proxy/load balancer

Example:

X-Forwarded-Proto: https
ForwardedRequestRFC 7239

Contains client information added by proxy servers (standardized alternative to X-Forwarded-*)

Example:

Forwarded: for=192.0.2.60;proto=https;by=203.0.113.43
RangeRequestRFC 7233

Indicates which part of the document the server should return

Example:

Range: bytes 0-1023
AgeResponseRFC 7234

Indicates how long the object has been stored in a proxy cache (in seconds)

Example:

Age: 3600

Usage

Features

This tool catalogs common HTTP request and response headers with detailed descriptions and category filtering.

Steps

Use the search box to quickly find headers, filter by type (request/response/common) and category (security/cache/content, etc.).