GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

List of HTTP header fields

This article lists standard and notable non-standard HTTP header fields. A core set of fields is standardized by the Internet Engineering Task Force (IETF) in . The Field Names, Header Fields and Repository of Provisional Registrations are maintained by the IANA. Additional fields may be defined by a web application. In the past, non-standard header field names were prefixed with X- but this convention was deprecated in June 2012 because of the inconveniences it caused when non-standard fields became standard. An earlier restriction on use of Downgraded- was lifted in March 2013. A few field values can contain comments (i.e. in User-Agent, Server, Via fields), which can be ignored by... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

This article lists standard and notable non-standard HTTP header fields. A core set of fields is standardized by the Internet Engineering Task Force (IETF) in . The Field Names, Header Fields and Repository of Provisional Registrations are maintained by the IANA. Additional fields may be defined by a web application. In the past, non-standard header field names were prefixed with X- but this convention was deprecated in June 2012 because of the inconveniences it caused when non-standard fields became standard. An earlier restriction on use of Downgraded- was lifted in March 2013. A few field values can contain comments (i.e. in User-Agent, Server, Via fields), which can be ignored by software. Many field values may contain a quality (q) key-value pair separated by equals sign, specifying a weight to use in content negotiation. For example, a browser may indicate that it accepts information in German or English, with German as preferred by setting the q value for de higher than that of en , as follows: Accept-Language: de; q=1.0, en; q=0.5 ==Request fields== This section lists header fields used in a request. ===Standard request fields=== For example: Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== For example: Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ== For example: Cookie: $Version=1; Skin=new; For example: Forwarded: for=192.0.2.60;proto=http;by=203.0.113.43 Forwarded: for=192.0.2.43, for=198.51.100.17 For example: Prefer: return=representation For example: Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== For example: Range: bytes=500-999 ===Common non-standard request fields=== For example: Upgrade-Insecure-Requests: 1 For example: X-Request-ID: f058ebd6-02f7-4d3f-942e-904344e8cde5 For example: Save-Data: on For example: Sec-GPC: 1 ==Response fields== This section lists header fields used in a response. ===Standard response fields=== For example: Accept-Patch: text/example;charset=utf-8 For example: Alt-Svc: http/1.1="http2.example.com:8001"; ma=7200 If a web server responds with Cache-Control: no-cache , then a web browser or other caching system (intermediate proxies) must not use the response to satisfy subsequent requests without first checking with the originating server (this process is called validation). This header field is part of HTTP/1.1, and is ignored by some caches and browsers. It may be simulated by setting the Expires HTTP/1.0 header field value to a time earlier than the response time. Notice that is not instructing the browser or proxies about whether or not to cache the content. It tells the browser and proxies to validate the cache content with the server before using it (this is done via , , , and ). Sending a value thus instructs a browser or proxy to not use the cache contents merely based on "freshness criteria" of the cache content. Another common way to prevent old content from being shown to the user without validation is Cache-Control: max-age=0 which instructs the user agent that the content is stale and should be validated before use. The value no-store instructs a browser to not cache the response, yet the browser is allowed to cache it none-the-less. In particular, the HTTP/1.1 definition draws a distinction between history stores and caches. If the user navigates back to a previous page, a browser may show a page that was stored on disk in the history store. This is correct behavior according to the specification. Many user agents provide different behavior in loading pages from the history store or cache depending on whether the protocol is HTTP or HTTPS. For example: Cache-Control: max-age=3600 For example: Content-Disposition: attachment; filename="fname.ext" For example: Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ== For example: Content-Type: text/html; charset=utf-8 For example: Link: </feed>; rel="alternate" [RFC 2626, permanent] This field is supposed to set P3P policy, in the form of P3P:CP="your_compact_policy" . However, P3P did not take off, most browsers have never fully implemented it; a lot of websites set this field with fake policy text, enough to fool browsers into thinking a P3P policy existed and granting permissions for third party cookies. For example: P3P: CP="This is not a P3P policy! See https://en.wikipedia.org/wiki/Special:CentralAutoLogin/P3P for more info." For example: Preference-Applied: return=representation For example: Public-Key-Pins: max-age=2592000; pin-sha256="E9CZ9INDbd+2eRQozYqqbQ2yXLVKB9+xcprMF+44U1g="; For example: Set-Cookie: CookieName=CookieValue; Max-Age=3600; Version=1 For example: Strict-Transport-Security: max-age=16070400; includeSubDomains ===Common non-standard response fields=== X-WebKit-CSP: default-src 'self' Expect-CT: max-age=604800, enforce, report-uri="https://example.example/report" Permissions-Policy: fullscreen=(), camera=(), microphone=(), geolocation=(), interest-cohort=() Refresh: 5; url= http://www.w3.org/pub/WWW/People.html {{code|2=yaml|1=Report-To: { "group": "csp-endpoint", "max_age": 10886400, "endpoints": [ { "url": "https-url-of-site-which-collects-reports" } ] } }} X-Content-Duration: 42.666 X-Content-Type-Options: nosniff Specifies the technology (e.g. ASP.NET, PHP, JBoss) supporting the web application (version details are often in X-Runtime , X-Version , or X-AspNet-Version ). For example: X-Powered-By: PHP/5.4.0 X-Redirect-By: WordPress X-Redirect-By: Polylang X-Request-ID: f058ebd6-02f7-4d3f-942e-904344e8cde5 Recommends the preferred rendering engine (often a backward-compatibility mode) to use to display the content. Also used to activate Chrome Frame in Internet Explorer. In HTML Standard, only the IE=edge value is defined. For example: X-UA-Compatible: IE=edge X-UA-Compatible: IE=EmulateIE7 X-UA-Compatible: Chrome=1 X-XSS-Protection: 1; mode=block ==See also== HTTP header injection List of HTTP status codes ==References== ==External links== Headers: Permanent Message Header Field Names : IETF HTTP State Management Mechanism : HTTP Semantics : HTTP Caching : HTTP/1.1 : HTTP/2 : HTTP/3 : Forwarded HTTP Extension : Prefer Header for HTTP HTTP headers at MDN Web Docs HTTP/1.1 headers from a web server point of view Internet Explorer and Custom HTTP Headers - EricLaw's IEInternals - Site Home - MSDN Blogs

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"List of HTTP header fields". 1791110583. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1378430699

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·