CAPTCHA solving
Do I need a browser to solve a CAPTCHA?
For most token and cookie types you do not: the solver runs the widget on its side, and your code only needs an HTTP client to create the task and send the answer.
It depends on the answer type
When the answer is a string you send with a request, a browser is optional. reCAPTCHA, Turnstile, MTCaptcha and GeeTest tokens, and AWS WAF or Cloudflare clearance cookies, can all be used from a plain HTTP client such as Python requests or Node fetch. When the answer is an action on screen, such as tiles to click or a distance to drag, you need a browser to perform it. A headless browser is enough for that; nobody has to watch it.
| Answer | Types | Browser needed? |
|---|---|---|
| Token for a form field | reCAPTCHA, Turnstile, MTCaptcha, GeeTest | No |
| Cookie for later requests | Cloudflare Challenge, AWS WAF, DataDome | No |
| Text to type | Image to Text | No, if you can fetch the image |
| Tile numbers to click | reCAPTCHA and AWS WAF image classification | Yes |
| Distance or angle | Vision Engine | Yes |
The no-browser workflow
Without a browser, your job is to reproduce the requests the page would make. Fetch the page, pull the site key and any hidden fields out of the HTML, create the task, and post the form with the token in the expected field. This is the fastest and cheapest way to run at volume, because an HTTP request uses a tiny fraction of the memory a browser tab needs.
import re, requests
client = requests.Session()
page = client.get("https://forum.example.org/register", timeout=20).text
site_key = re.search(r'data-sitekey="([^"]+)"', page).group(1)
csrf = re.search(r'name="csrf" value="([^"]+)"', page).group(1)
# answer = solve(...ReCaptchaV2TaskProxyLess with site_key...)
form = {"csrf": csrf, "user": "qa_probe_17", "g-recaptcha-response": "TOKEN"}
# client.post("https://forum.example.org/register", data=form)
Pages that really need a browser
Some pages cannot be reproduced with plain requests in reasonable time. Signs include forms built entirely by JavaScript, tokens that the page posts through its own XHR call, callback functions that compute extra fields, and fingerprint scripts that must run before the server accepts anything. In those cases drive a real browser with Playwright, Puppeteer or Selenium, inject the answer, and let the page do the rest. The pages on JavaScript rendering and static versus dynamic pages help you decide.
Image tasks without a browser
A text image is often available as a plain URL or inline base64 in the HTML. If you can download it in the same session that will submit the form, you can solve it with Image to Text and post the text, no browser at all. Grid and slider puzzles are different: the image is generated inside the widget, and the answer only makes sense as clicks or a drag in that widget, so a browser is required.
Common mistakes
- Downloading a text image in one session and submitting in another. The server links the image to the session cookie, so the text will not match.
- Assuming a browser makes requests look human by itself. Headless browsers have their own tells, covered under headless detection.
- Running a browser for every request when only the login needs one. Log in with the browser, copy the cookies to an HTTP client, and continue there.
How GateSolver fits either way
The API does not care where your code runs. The same task works from a cron job with no display, from a Playwright test, or from a serverless function. The solver handles the widget on its side, so even a client that cannot run JavaScript gets a working token.
A mixed approach for heavy jobs
Large jobs often combine both styles. A small pool of browsers handles the steps that need one, such as logging in, passing a slider or loading a page whose form is assembled by scripts. As soon as the session is established, the cookies move to a fast HTTP client that does the bulk of the requests. When the client meets a token widget, it creates a task and posts the token itself; when it meets a challenge that needs clicks, it hands the URL back to the browser pool. This keeps memory use low without giving up on the pages that truly need rendering.
Common questions
Can I solve reCAPTCHA v2 with curl only?
Yes. Create the task with curl, poll for the token, and post it in the g-recaptcha-response field of the form.
Does the solver need my browser to be open?
No. The solver works on its own side; your browser or client only uses the answer.
Why do grid answers need a browser?
They come back as tile numbers, which only mean something when clicked inside the live widget.
Is headless good enough for slider answers?
Yes. A headless browser can move the slider by the returned distance just like a visible one.
Will plain requests get flagged more than a browser?
Sometimes. Sites that check TLS or JavaScript fingerprints notice plain clients, so match headers and consider a browser for those.
Keep reading
- Headless browserA real browser engine running without a visible window, driven by code for tests, screenshots and pages that need JavaScript.
- How do I tell if a page is static or dynamic?Compare the raw HTML with what the browser shows: if your data is missing from the source, JavaScript adds it.
- Solving CAPTCHAs in web scraping pipelinesAn architecture for scrapers that meet CAPTCHAs: detect challenges as their own outcome, solve in a separate stage, retry with clear limits.
- Image to Text solver$0.28 per 1,000 tasks, answers under 1 seconds.