HTTP Headers

Next ❯Ajax Reference

Some well known pre-defined headers, you can also have your own custom headers as per your own use

AcceptInforms the server about the types of data that can be sent back
Accept-EncodingInforms the server about the encoding algorithm, that can be used on the resource sent back
Accept-LanguageInforms the server about the language the server is expected to send back
Accept-RangesSpecifies the range unit-type of the resource
Access-Control-Allow-CredentialsSpecifies whether the response to the request can be exposed when the credentials flag is true
Access-Control-Allow-HeadersUsed in response to a preflight request to indicate which HTTP headers can be used when making the actual request
Access-Control-Allow-OriginSpecifies whether the response can be shared or not
AuthorizationContains the credentials to authenticate a user agent with a server
Cache-ControlControls whether the network connection stays open after the current transaction finishes
ConnectionControls whether the network connection stays open after the current transaction finishes
Content-EncodingSpecifies the compression algorithm
Content-LanguageSpecifies the content language
Content-LengthSpecifies the content size, sent to the recipient
Content-RangeSpecifies the content range of the resource
Content-TypeSpecifies the media-type of the resource
CookieSpecifies the stored HTTP cookies previously sent by the server with the Set-Cookie header
DateSpecifies the date and time at which the message was originated
DNTSpecifies the user's tracking preference
ETagIt is a validator, a unique string identifying the version of the resource
ExpiresThe date/time after which the response is considered stale
HostSpecifies the domain name of the server
Keep-AliveControls how long a persistent connection should stay open
Last-ModifiedIt is a validator, the last modification date of the resource, used to compare several versions of the same resource
LocationSpecifies the URL to which a page to redirect
RangeSpecifies the part of a document that the server should return
RefererSpecifies the address of the previous web page from which a link to the currently requested page was followed
ServerSpecifies the information about server software which is handling the requests
Set-CookieSend cookies from the server to client
Strict-Transport-SecurityTo force the communication using HTTPS instead of HTTP
Transfer-EncodingSpecifies the form of encoding used to safely transfer the entity to the user
User-AgentSpecifies the requesting software/browser details to identify the application type, operating system and other more informations
WWW-AuthenticateSpecifies the authentication method that should be used to gain access to a resource
X-Content-Type-OptionsDisables MIME sniffing and forces browser to use the type given in Content-Type
X-Frame-OptionSpecifies whether a browser should be allowed to open a page in a <iframe>, <embed> or <object>
X-XSS-ProtectionEnables cross-site scripting filtering

  • Ajax Reference
❮ Prev HTTP Message & Codes
Next ❯Ajax Reference
TryOut Examples"Learn to Explore..!"

TryOut Editor