HTTP headers are key-value pairs sent with every web request and response that convey metadata, like content type, User-Agent, cookies, or caching rules, separate from the actual page content. The W3C lists the set of HTTP request headers a browser sends as a passive fingerprinting source.

Header order itself can be a fingerprinting signal: a Black Hat Europe 2017 paper on passive fingerprinting of HTTP/2 clients lists pseudo-header order among its fingerprint attributes.

Types of HTTP Headers

MDN groups headers by the context they apply to:

  • Request headers: Details about the resource being fetched or the client requesting it.
  • Response headers: Details about the response, such as its location or the server providing it.
  • Representation headers: Details about the body, such as its MIME type and any encoding or compression.
  • Payload headers: Details such as content length and the encoding used for transport.

In HTTP/1.x, header names are case-insensitive, so Accept and accept mean the same thing.

Headers Proxies Add or Use

  • Proxy-Authorization: Carries the credentials that authenticate a client with a proxy server.
  • Via: Added by forward and reverse proxies, in both requests and responses.
  • Forwarded: Carries client-side details, such as the original IP address, that would otherwise be changed or lost when a proxy is in the path.