NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Glossary

User agent: the header that names your client

A user agent is the software acting for a person on the web, and the User-Agent header is the string that software sends to describe itself on every HTTP request.

Definition

In HTTP terms the user agent is the client: a browser, a crawler, a command line tool or a library inside your script. It identifies itself through the User-Agent request header. Servers use the value for statistics, to serve a mobile or desktop layout, to work around browser bugs and, increasingly, as one input to bot detection.

Anatomy of a Chrome user agent

A desktop Chrome string on Windows looks roughly like this (the version number is an example):

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
PieceMeaning
Mozilla/5.0Historical compatibility token sent by almost every browser
(Windows NT 10.0; Win64; x64)Platform: OS family and architecture
AppleWebKit/537.36Engine lineage token, frozen at this value in Chromium
(KHTML, like Gecko)More compatibility history
Chrome/131.0.0.0Browser and major version; minor parts are reduced to zeros
Safari/537.36Compatibility token for sites that sniff Safari

The odd mix of names comes from decades of sites checking for specific browsers, which pushed every new browser to claim to be its predecessors as well.

User agent reduction and client hints

Because the full string helped track people, Chromium began freezing parts of it: the OS version on some platforms, the device model on Android, and the minor version numbers. Detailed data moved to client hints, a set of Sec-CH-UA headers that a site must request explicitly. A modern request therefore carries both a short User-Agent and a few low entropy hints by default, with more available on request.

Mobile and tablet strings

Mobile user agents add a device hint and the word Mobile. On Android, Chromium now reports a generic model token in place of the real phone name, and iPhone strings describe Safari's engine even when another browser app is installed, because every iOS browser runs on WebKit. Servers often pick a page layout from this one word, so a desktop crawler that claims to be a phone receives the mobile version of the site, which can be useful when it is lighter.

Default strings of common tools

Libraries announce themselves honestly unless told otherwise. Python's requests sends something like python-requests/2.x, curl sends curl/8.x, and Go's client sends Go-http-client/2.0. Many sites block or challenge those immediately, which is why scrapers set a browser string. Changing it is easy; making the rest of the request agree with it is the hard part, covered in user agent spoofing.

User agent and CAPTCHA tokens

Token CAPTCHAs are produced in a browser context, and that context has a User-Agent. GateSolver includes the one it used in the solution of token tasks such as reCAPTCHA v2 and Cloudflare Turnstile. Some sites compare the submitting request's User-Agent with the one recorded when the token was made, so sending the returned value alongside the token avoids a silent rejection. Cookie tasks like Cloudflare Challenge take your User-Agent as an input, and the cookie is valid only with that exact string. The FAQ on which User-Agent to send has the short version.

Choosing a user agent for automation

  • Pick a current, common browser version, not one from several years ago.
  • Match the platform to the machine your browser or TLS stack actually represents.
  • Keep it fixed for a whole session; rotating mid session breaks cookies and looks odd.
  • Update it when the browser you impersonate ships a new major release.

The guide to user agents for scraping goes into rotation strategy and testing.

Common questions

Why does every browser start its user agent with Mozilla?

Early sites served richer pages only to Netscape (Mozilla), so other browsers copied the token to receive the same content.

Can a server trust the User-Agent header?

Not on its own, since any client can set it; servers compare it with TLS, client hints and JavaScript data.

Why does Chrome report version numbers ending in zeros?

Chromium reduced the string to the major version for privacy; detailed version data is available through client hints instead.

Which user agent should I send with a solved token?

Use the User-Agent returned in the task solution when the site checks for a match, or the one you passed in for cookie tasks.

Is it allowed to change my user agent?

Changing it is a normal browser feature; what matters is that the automation itself is for a permitted purpose.

Keep reading