HTTP - User Agent Header

> (World Wide) Web - (W3|WWW) > (HTTP|HTTPS) - Hypertext Transfer Protocol

1 - About

user-agent is a header that identify a HTTP client (even when the client is not operated by a user).


3 - Example

3.1 - Browser

Generally, a user is using a a browser as HTTP client. In this case, the user-agent would have the value of the browser

Example with a Javascript script that shows you the user-agent of your browser.

console.log("The navigator user agent that you are using is: "+navigator.userAgent);

3.2 - App

A client (user agent) may also be an app (most well known as a bot).

Example for Google Bot:

Mozilla/5.0 (compatible; Googlebot/2.1; +

4 - Management

4.1 - Modification

In Internet explorer with the devtool

  • F12
  • Then


5 - Documentation / Reference

web/http/user-agent.txt · Last modified: 2019/02/09 15:18 by gerardnico