HTTP Headers Reference

Searchable list of all HTTP headers with descriptions and examples

httpheadersreferencerequestresponse

Showing 60 of 60 headers

NameTypeDescription
AcceptRequestInforms the server about the types of data the client can understand.
Accept-CharsetRequestAdvertises which character encodings the client understands.
Accept-EncodingRequestAdvertises which content-encoding algorithms the client supports.
Accept-LanguageRequestAdvertises which languages the client is able to understand.
AuthorizationRequestContains credentials to authenticate a user-agent with a server.
CookieRequestContains stored HTTP cookies previously sent by the server.
ExpectRequestIndicates expectations the server must meet to handle the request.
FromRequestContains an Internet email address for a human user controlling the requesting agent.
HostRequestSpecifies the host and port number of the server to which the request is being sent.
If-MatchRequestMakes the request conditional; the server sends the resource only if it matches a given ETag.
If-Modified-SinceRequestMakes the request conditional; the server sends the resource only if it has been modified after the given date.
If-None-MatchRequestMakes the request conditional; returns 304 Not Modified if the ETag matches.
If-RangeRequestMakes a range request conditional; used to resume a download.
If-Unmodified-SinceRequestMakes the request conditional; server processes it only if unchanged since the given date.
Max-ForwardsRequestLimits the number of times the request can be forwarded by proxies.
OriginRequestIndicates where a cross-origin fetch originates from.
Proxy-AuthorizationRequestContains credentials to authenticate a user agent with a proxy server.
RangeRequestSpecifies the part of a document the server should return.
RefererRequestContains the absolute or partial address of the page making the request.
TERequestSpecifies the transfer encodings the user agent is willing to accept.
Upgrade-Insecure-RequestsRequestSignals the client's preference for an encrypted and authenticated response.
User-AgentRequestContains a characteristic string that allows network protocol peers to identify the application.
X-Forwarded-ForRequestIdentifies the originating IP address of a client connecting through a proxy.
X-Requested-WithRequestUsed to identify Ajax requests by JavaScript frameworks.
Accept-RangesResponseIndicates whether the server supports range requests for a resource.
AgeResponseTime in seconds the object has been in a proxy cache.
AllowResponseLists the set of HTTP request methods supported by a resource.
Content-DispositionResponseIndicates how the content should be displayed; often used to trigger a file download.
Content-EncodingResponseSpecifies the encoding applied to the response body.
Content-LanguageResponseDescribes the language(s) intended for the response audience.
Content-LocationResponseIndicates an alternate location for the returned data.
Content-RangeResponseIndicates where in the full body a partial message belongs.
ETagResponseIdentifier for a specific version of a resource, used for caching.
ExpiresResponseContains the date/time after which the response is considered stale.
Last-ModifiedResponseContains the date and time the server believes the resource was last modified.
LocationResponseIndicates the URL to redirect a page to, used with 3xx status codes.
Proxy-AuthenticateResponseDefines the authentication method to gain access to a proxy.
Retry-AfterResponseIndicates how long to wait before making a follow-up request.
ServerResponseContains information about the software used by the origin server.
Set-CookieResponseSends cookies from the server to the user agent.
Strict-Transport-SecurityResponseInforms browsers that the site should only be accessed using HTTPS (HSTS).
TrailerResponseSpecifies headers that will be present in the trailer of a chunked transfer encoded message.
Transfer-EncodingResponseSpecifies the form of encoding used to transfer the payload body.
VaryResponseDetermines how to match future request headers to decide whether a cached response can be used.
WWW-AuthenticateResponseDefines the authentication method that should be used to access the resource.
X-Content-Type-OptionsResponsePrevents MIME-sniffing attacks by instructing browsers to follow the declared content type.
X-Frame-OptionsResponseControls whether a browser can render a page in a frame, used to prevent clickjacking.
X-XSS-ProtectionResponseEnables cross-site scripting filtering in browsers (legacy; superseded by CSP).
Cache-ControlBothHolds directives for caching in both requests and responses.
ConnectionBothControls whether the network connection stays open after the current transaction.
Content-LengthBothSize of the message body in bytes.
Content-Security-PolicyBothControls resources the browser is allowed to load, helps prevent XSS.
Content-TypeBothIndicates the media type of the resource or data being sent.
DateBothContains the date and time at which the message was originated.
ForwardedBothContains information from the client-facing side of proxy servers that is altered by proxies.
Keep-AliveBothControls how long a persistent connection should stay open.
PragmaBothImplementation-specific header that may have various effects along the request-response chain.
UpgradeBothSpecifies that the client wishes to switch to a different protocol.
ViaBothAdded by proxies to track message forwards and avoid request loops.
WarningBothCarries additional information about the status of a message.