Your HTTP Headers

Frequently asked questions about HTTP headers

What are HTTP headers?

HTTP headers are a set of key-value pairs that are used to send information between the browser and the server. The purpose of HTTP headers is to provide information about the request or response. They can be used to specify the type of content being sent or received, the size of the content, and other details.

What are the most common HTTP headers?

The most common HTTP headers are:

  • Host: The domain name of the server.
  • User-Agent: Contains information about the browser and operating system.
  • Accept: The type of content the browser can accept.
  • Accept-Language: The list of user's preferred languages.
  • Content-Type: The type of content being sent.
  • Content-Length: The size of the content being sent.
  • Referer: The URL of the page that referred the user to the current page. In case the request is made in the background using the JavaScript fetch API, the referer is equal to the URL of the page itself.
  • sec-ch-ua: Contains information about the user browser in a more structured way than the User-Agent header.

Can I change the user agent sent by my browser?

Yes, you can change your user agent using browser extensions like User-Agent Switcher for Chrome.

Note that it's still possible to detect your real browser and real operating system using JavaScript and fingerprinting techniques, even if you change the user agent.