---
title: "HTTP Headers Reference guide and lookup reference - AllTools"
description: "A reference for common headers like Cache-Control, Content-Type, Set-Cookie and Authorization, explaining meaning, example values and browser behavior."
canonical_url: "https://tool.warmday.wang/en/dev/http-headers"
meta:
  author: AllTools
  keywords: "online tools, AllTools, free online tools, developer tools, image tools, PDF tools, text tools, unit converter, no login, browser-based tools"
  "og:description": "A reference for common headers like Cache-Control, Content-Type, Set-Cookie and Authorization, explaining meaning, example values and browser behavior."
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "HTTP Headers Reference guide and lookup reference"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **HTTP Headers Reference**

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

**Search**

**Type Filter**

**Category Filter**

## **53 Headers**

`**Accept**`RequestRFC 7231

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

Example：

`Accept: text/html, application/json`

`**Accept-Encoding**`RequestRFC 7231

Indicates the content encoding methods that the client supports

Example：

`Accept-Encoding: gzip, deflate, br`

`**Accept-Language**`RequestRFC 7231

Indicates the natural language preferences of the client

Example：

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

`**Accept-Charset**`RequestRFC 7231

Indicates the character sets that the client supports

Example：

`Accept-Charset: utf-8, iso-8859-1`

`**Content-Type**`CommonRFC 7231

Indicates the media type of the request or response body

Example：

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

`**Content-Encoding**`ResponseRFC 7231

Indicates the encoding method used for the response body

Example：

`Content-Encoding: gzip`

`**Content-Length**`CommonRFC 7230

Indicates the byte length of the request or response body

Example：

`Content-Length: 1234`

`**Content-Disposition**`ResponseRFC 6266

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

Example：

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

`**Content-Range**`ResponseRFC 7233

Indicates the position of a partial response within the full response

Example：

`Content-Range: bytes 0-1023/10240`

`**Cache-Control**`CommonRFC 7234

Defines caching mechanism instructions for requests and responses

Example：

`Cache-Control: max-age=3600, public`

`**ETag**`ResponseRFC 7232

A specific version identifier for a resource

Example：

`ETag: "33a64df551425fcc55e4d42a148795d9f25f89d4"`

`**If-None-Match**`RequestRFC 7232

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

Example：

`If-None-Match: "33a64df551425fcc55e4d42a148795d9f25f89d4"`

`**If-Modified-Since**`RequestRFC 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-Modified**`ResponseRFC 7232

Indicates the date and time the resource was last modified

Example：

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

`**Expires**`ResponseRFC 7234

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

Example：

`Expires: Thu, 01 Dec 2025 16:00:00 GMT`

`**Authorization**`RequestRFC 7235

Contains credentials used to authenticate the user identity to the server

Example：

`Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...`

`**WWW-Authenticate**`ResponseRFC 7235

Defines the authentication method used to access the resource

Example：

`WWW-Authenticate: Bearer realm="api", error="invalid_token"`

`**Proxy-Authorization**`RequestRFC 7235

Contains credentials used to authenticate to the proxy server

Example：

`Proxy-Authorization: Basic dXNlcjpwYXNz`

`**Strict-Transport-Security**`ResponseRFC 6797

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

Example：

`Strict-Transport-Security: max-age=31536000; includeSubDomains`

`**Content-Security-Policy**`ResponseCSP 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-Options**`Response

Prevents the browser from performing MIME type sniffing on the response

Example：

`X-Content-Type-Options: nosniff`

`**X-Frame-Options**`ResponseRFC 7034

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

Example：

`X-Frame-Options: DENY`

`**X-XSS-Protection**`Response

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

Example：

`X-XSS-Protection: 1; mode=block`

`**Referrer-Policy**`ResponseReferrer Policy

Controls how much information the Referer header carries in requests

Example：

`Referrer-Policy: strict-origin-when-cross-origin`

`**Permissions-Policy**`ResponsePermissions Policy

Allows or denies the browser from using specific features and APIs

Example：

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

`**Access-Control-Allow-Origin**`ResponseFetch

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-Methods**`ResponseFetch

In a preflight response, indicates the HTTP methods allowed

Example：

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

`**Access-Control-Allow-Headers**`ResponseFetch

In a preflight response, indicates the request headers allowed

Example：

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

`**Access-Control-Allow-Credentials**`ResponseFetch

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

Example：

`Access-Control-Allow-Credentials: true`

`**Access-Control-Max-Age**`ResponseFetch

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

Example：

`Access-Control-Max-Age: 86400`

`**Access-Control-Request-Method**`RequestFetch

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

Example：

`Access-Control-Request-Method: DELETE`

`**Access-Control-Request-Headers**`RequestFetch

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

Example：

`Access-Control-Request-Headers: X-Custom-Header`

`**Origin**`RequestRFC 6454

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

Example：

`Origin: https://example.com`

`**Host**`RequestRFC 7230

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

Example：

`Host: www.example.com:8080`

`**Connection**`CommonRFC 7230

Controls whether the network connection stays open after the transaction completes

Example：

`Connection: keep-alive`

`**Keep-Alive**`CommonRFC 7230

Indicates how long the sender wishes to keep the connection alive

Example：

`Keep-Alive: timeout=5, max=1000`

`**Transfer-Encoding**`ResponseRFC 7230

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

Example：

`Transfer-Encoding: chunked`

`**Upgrade**`CommonRFC 7230

Requests the server to upgrade to another protocol

Example：

`Upgrade: websocket`

`**Cookie**`RequestRFC 6265

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

Example：

`Cookie: session_id=abc123; user=john`

`**Set-Cookie**`ResponseRFC 6265

Sends cookies from the server to the user agent

Example：

`Set-Cookie: session_id=abc123; Path=/; HttpOnly; Secure; SameSite=Strict`

`**User-Agent**`RequestRFC 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`

`**Referer**`RequestRFC 7231

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

Example：

`Referer: https://example.com/page.html`

`**Location**`ResponseRFC 7231

Indicates the target URL for a redirect

Example：

`Location: /new-page`

`**Retry-After**`ResponseRFC 7231

Informs the client how long to wait before making another request

Example：

`Retry-After: 120`

`**Server**`ResponseRFC 7231

Contains software information about the origin server that handled the request

Example：

`Server: nginx/1.24.0`

`**Date**`CommonRFC 7231

The date and time at which the message was originated

Example：

`Date: Wed, 21 Oct 2025 07:28:00 GMT`

`**Vary**`ResponseRFC 7231

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

Example：

`Vary: Accept-Encoding, Origin`

`**X-Request-ID**`Common

A unique identifier used to trace requests

Example：

`X-Request-ID: 550e8400-e29b-41d4-a716-446655440000`

`**X-Forwarded-For**`RequestRFC 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-Proto**`Request

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

Example：

`X-Forwarded-Proto: https`

`**Forwarded**`RequestRFC 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`

`**Range**`RequestRFC 7233

Indicates which part of the document the server should return

Example：

`Range: bytes 0-1023`

`**Age**`ResponseRFC 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.).

## **Related tools**

More from the same category · Developer Tools

[**Cron Expression**Visual Cron builder: pick minute-hour-day-month-weekday fields and preview next run times live.](https://tool.warmday.wang/en/dev/cron) [**JSON Formatter**JSON beautify, minify and validate with auto error location for missing brackets and stray commas.](https://tool.warmday.wang/en/dev/json) [**Timestamp Converter**Convert Unix timestamps to dates and back with second/millisecond precision and live current time.](https://tool.warmday.wang/en/dev/timestamp) [**Regex Tester**Test regex with live match highlighting, capture groups and substitution, toggling g/i/m/s flags.](https://tool.warmday.wang/en/dev/regex) [**JWT Parser**Split a JWT into header, payload and signature, then base64url-decode claims and expiry without a key.](https://tool.warmday.wang/en/dev/jwt-parser) [**JWT Generator**Issue JWTs with custom header, claims and expiry across HS256, RS256, ES256 for auth-flow testing.](https://tool.warmday.wang/en/dev/jwt-generator)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/en#website","url":"https://tool.warmday.wang/en","name":"AllTools","inLanguage":"en","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/en?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/en/dev/http-headers#webpage","url":"https://tool.warmday.wang/en/dev/http-headers","isPartOf":{"@id":"https://tool.warmday.wang/en#website"},"inLanguage":"en","name":"HTTP Headers Reference guide and lookup reference","description":"A reference for common headers like Cache-Control, Content-Type, Set-Cookie and Authorization, explaining meaning, example values and browser behavior."},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/en/dev/http-headers#app","name":"HTTP Headers Reference guide and lookup reference","description":"A reference for common headers like Cache-Control, Content-Type, Set-Cookie and Authorization, explaining meaning, example values and browser behavior.","url":"https://tool.warmday.wang/en/dev/http-headers","applicationCategory":"DeveloperApplication","operatingSystem":"Web","inLanguage":"en","isPartOf":{"@id":"https://tool.warmday.wang/en/dev/http-headers#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/en/dev/http-headers#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://tool.warmday.wang/en"},{"@type":"ListItem","position":2,"name":"Developer Tools","item":"https://tool.warmday.wang/en/dev"},{"@type":"ListItem","position":3,"name":"HTTP Headers Reference","item":"https://tool.warmday.wang/en/dev/http-headers"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
