Glossary
HTTP header: the metadata on every request
An HTTP header is a name and value pair sent before the body of a request or response, carrying metadata such as the client type, accepted formats, cookies and caching rules.
Where headers sit
Every HTTP message has a start line (the method and path, or the status), a block of headers, an empty line, and an optional body. In HTTP/1.1 headers are text lines like Accept-Language: en-US,en;q=0.9. HTTP/2 and HTTP/3 send them in a compressed binary form and use lowercase names, plus pseudo headers such as :method and :path. The meaning is the same across versions.
Request headers that bot checks read
| Header | What it says | Why checks care |
|---|---|---|
User-Agent | Browser and OS | Library defaults give automation away at once (see user agent) |
Accept | Formats the client wants | Browsers send a long, version specific value; scripts often send */* |
Accept-Language | Preferred languages | Missing or at odds with IP location and timezone |
Accept-Encoding | Compression support | Browsers include br and zstd in recent versions |
Sec-CH-UA and friends | Client hints about brand and platform | Must agree with the user agent string |
Sec-Fetch-* | Whether the request is a navigation, a script call, same site or cross site | Missing values reveal non browser clients |
Referer and Origin | Where the request came from | A form post with no origin looks odd |
Cookie | Session and clearance cookies | Carries the proof that a challenge was passed |
Consistency and order
Individual values matter less than whether they fit together. A Chrome user agent paired with Firefox style Accept values, no client hints and an HTTP/1.1 connection is a contradiction a detector spots immediately. Header order is part of the picture too: browsers send headers in a stable order per version, and many HTTP libraries use a different one. Copying a full header set from a real browser session, in order, and keeping it consistent with the TLS fingerprint is what makes a client blend in.
Response headers worth reading
Set-Cookie: new cookies, including clearance cookies after a passed check.Retry-After: how long to wait after a 429 or 503 (see backoff).Location: the target of a redirect.Serverand vendor specific headers: hints about which CDN or protection layer answered, useful for picking the right task type.Content-Type: whether you got the JSON you expected or an HTML challenge page.
Seeing what a browser really sends
Open the Network panel, click the main document request and view the raw request headers. Compare them line by line with what your client sends, for example by pointing both at a header echo service you run yourself. Differences in casing, order or missing fields show up immediately, and fixing them is often enough to stop a site from flagging plain HTTP traffic.
Headers and solved tokens
Several task types return a userAgent with the solution. Send that exact string as your User-Agent when you use the token or cookie, especially for a Cloudflare Challenge clearance cookie, which is tied to both the IP and the user agent. Some JSON endpoints also expect the CAPTCHA token in a custom request header rather than the body; read the page's own requests to see which.
Common questions
Are HTTP header names case sensitive?
No. They are case insensitive, and HTTP/2 and HTTP/3 always send them in lowercase.
Which header gives a script away most often?
The User-Agent, because libraries send defaults such as python-requests that no browser uses.
Does header order matter to bot checks?
It can. Browsers send headers in a stable order, and a different order is one more signal of automation.
Which user agent should I send with a solved cookie?
The userAgent returned in the task solution, so the cookie and the client details match.
What does the Retry-After header mean?
It tells the client how many seconds to wait, or until what time, before sending the request again.
Keep reading
- User agentThe User-Agent header, how a Chrome string is put together, and how client hints now carry part of the same data.
- Client hints (Sec-CH-UA)The Sec-CH-UA family of request headers, which hints are sent by default, and how they must agree with the User-Agent.
- Picking user agents for scrapersHow to choose, maintain and rotate user agent strings so a scraper reads as a current, ordinary browser.
- CookieSmall values a site stores in the client, which carry sessions and the clearance proof issued after a passed challenge.