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

CAPTCHA solving

Which user agent should I use with a solved token?

Use the one in the solution. Token and cookie answers return a userAgent field, and sending that exact string with your requests keeps your session consistent with the solve.

Why the user agent matters

The user agent header says which browser and operating system sent a request. Anti-bot systems compare it with everything else they know about the session: the browser that passed the check, the TLS handshake, client hints, even screen size reported by scripts. When the token was earned by one browser and arrives inside a request that claims to be another, the token itself is valid but the session looks inconsistent. Some sites ignore that; stricter ones refuse the request or show the challenge again.

What GateSolver returns

Token answers such as reCAPTCHA and Turnstile come back with gRecaptchaResponse or token plus userAgent. Cloudflare Challenge returns the cf_clearance cookie together with the user agent it was earned under. For that type, and for DataDome, you can also pass your own userAgent in the task so the solve uses the string your scraper already sends.

Where it is essential and where it is optional

AnswerMatching user agent
cf_clearance cookieRequired. Cloudflare checks it with the cookie.
datadome cookieRequired, together with the same IP.
reCAPTCHA v3 and Enterprise tokensStrongly advised, since they feed a risk score.
reCAPTCHA v2, Turnstile, MTCaptcha tokensAdvised; many sites do not check it.
Image text, grid tile numbersNot relevant to the answer itself.

Using it in code

Set the header once on the session that will send the token, then keep it for the rest of the flow. Here is the idea in Node.js with fetch:

async function postWithSolve(url, fields, solution) {
  const body = new URLSearchParams({ ...fields, "g-recaptcha-response": solution.gRecaptchaResponse });
  // URLSearchParams sets the form content type on its own
  return fetch(url, {
    method: "POST",
    headers: { "User-Agent": solution.userAgent, "Accept-Language": "en-GB,en;q=0.8" },
    body,
  });
}

In a browser automation tool, set the user agent when you create the context, before loading the page, instead of patching it later. Playwright takes it as a context option, and Selenium as a browser argument. The guide on setting the user agent in Selenium shows the details.

Keep the rest of the headers in line

A Chrome user agent paired with headers that no Chrome would send is a classic mismatched user agent signal. When you claim Chrome, also send plausible Accept, Accept-Language and, where the site expects them, client hints such as Sec-CH-UA whose version agrees with the user agent string. Avoid rotating the user agent within one session; a person does not switch browsers between loading a form and submitting it.

Common mistakes

  • Leaving the library default, such as python-requests/2.x, which announces a script on every request.
  • Copying a user agent from an old list. Very old browser versions stand out more than a current one.
  • Changing the user agent on retry while keeping the same cookies, which breaks clearance cookies at once.

When you control the task, the simplest rule is to decide the user agent once, pass it in the task where the type accepts it, and send the same string everywhere afterwards.

Checking what you actually send

Libraries and proxies sometimes change headers without telling you. Point your client at a request echo service you control, or at a local test server, and print the headers it receives. Do the same from the browser you automate. If the user agent, language or client hints differ from what you configured, fix that before you look for problems in the token. This five minute test settles many debates about why one environment passes and another does not, and the list of user agents for scraping helps you choose a current string.

Common questions

Can I send my own user agent in a reCAPTCHA task?

The reCAPTCHA types return the user agent used for the solve; reuse that string in your requests.

Does the user agent affect image tasks?

No. Text and grid answers depend only on the picture, not on the browser string.

Should I rotate user agents between sessions?

Rotating between separate sessions is fine; switching within one session is what looks wrong.

Why did my cf_clearance stop working after I changed headers?

Cloudflare ties the cookie to the user agent it was issued for, so a new string invalidates it.

Is a mobile user agent a good idea?

Only if the rest of your request looks mobile too; otherwise a current desktop string is safer.

Keep reading