Skip to main content
kasadahttp protocolarchitecturereverse engineering8 min readBy Catmouse Engineering

TLS JA4, HTTP/2 Header Order, and Client Hints in Solvers

Last reviewed
Short answer

Transport and Client Hints coherence is the requirement that your HTTP client's TLS ClientHello (JA4), HTTP/2 framing, and sec-ch-ua headers match the device profile solved by POST /Solver/solve across every call. Below: how edge proxies cross-check transport signals against solved tokens.

Who this is for

Security researchers and protocol engineers building plain HTTP clients who receive {"reload":false} on /tl yet still encounter HTTP 429 or 403 blocks on downstream API calls due to transport or header drift.

On this page
  1. Why do valid solver tokens fail when transport fingerprints drift?
  2. How do HTTP/2 pseudo-headers and Client Hints expose plain HTTP clients?
  3. How do you align SolveRequest fields with your HTTP client stack?
  4. What transport consistency checks should run before POST /tl?
  5. Key takeaways
  6. Conclusion and scope
  7. Evidence and sources
  8. Frequently asked questions

Why do valid solver tokens fail when transport fingerprints drift?

Edge proxies bind challenge tokens to the connecting TLS fingerprint, HTTP/2 framing profile, and browser headers observed during the initial bootstrap exchange.

Because the Catmouse Solver API (POST /Solver/solve) is an offline protocol solver that never opens outbound connections to the target, your own HTTP client conducts every network exchange over a trusted TLS session. When your client requests /fp, downloads ips.js, posts the solved telemetry to /tl, and finally calls the protected storefront endpoint, the CDN edge observes both the encrypted payload inside /tl and the outer transport metadata of each connection.

In contrast to a self-contained bearer token, an x-kpsdk-ct session token is evaluated alongside the client's TLS 1.3 ClientHello (RFC 8446), HTTP/2 connection preface (RFC 9113), and egress IP address. If a client solves ips.js with "engine": "chrome" but sends POST /tl using a default Python or Go TLS stack whose JA3/JA4 hash and HTTP/1.1 framing cannot originate from Chromium, the edge flags the discrepancy.

Four transport and metadata layers correlated by anti-bot edges

Inspecting a real browser session in HarFiddle alongside the Catmouse OpenAPI 3.1 contract highlights four layers that must agree:

TLS 1.3 ClientHello (JA3 / JA4)
Cipher suite ordering, ALPN negotiation (h2), elliptic curve groups, signature algorithms, and GREASE values emitted during the TLS handshake.
HTTP/2 Framing and Pseudo-Header Order
Initial SETTINGS frame parameters, WINDOW_UPDATE increments, and the exact sequence of HTTP/2 pseudo-headers (:method, :authority, :scheme, :path in Chromium).
User-Agent and sec-ch-ua Client Hints
The User-Agent header, high-entropy Client Hints (sec-ch-ua, sec-ch-ua-mobile, sec-ch-ua-platform), and Fetch Metadata headers (sec-fetch-site, sec-fetch-mode, sec-fetch-dest).
Storefront Context Fields in SolveRequest
The engine, userAgent, acceptLanguage, pageOrigin, pageUrl, cfBeacon, and session ("fresh" or "returning") fields passed to POST /Solver/solve.

How do HTTP/2 pseudo-headers and Client Hints expose plain HTTP clients?

Default language HTTP libraries send non-browser pseudo-header ordering and omit Client Hints headers that modern Chromium browsers attach on every navigation.

Even when an engineer sets a Chrome User-Agent string on a standard HTTP client, three wire-level mismatches frequently betray the request before the origin ever inspects x-kpsdk-ct or x-kpsdk-cd:

Comparing a coherent browser-impersonating HTTP client versus a default library stack

The table below contrasts a transport-coherent HTTP client with a naive HTTP configuration across the challenge lifecycle:

Table 1. Transport-coherent HTTP client versus a default language HTTP stack on Kasada targets
Wire SignalCoherent Chromium Profile (engine: "chrome")Naive Language HTTP Client (Drift Failure)
HTTP/2 pseudo-headers:method, :authority, :scheme, :pathHTTP/1.1 or :method, :path, :scheme, :authority
Client Hints headerssec-ch-ua brands & major version match User-AgentOmitted or frozen on an older Chrome version
Accept-LanguageMatches acceptLanguage sent to POST /Solver/solveOmitted on XHR calls or disagrees with solved payload
Connection & IP continuitySingle pooled HTTP/2 connection over one sticky proxy IPRotates proxy exit IP between /tl and protected route
Four-part diagram of transport and telemetry coherence: 1. TLS 1.3 ClientHello (JA4) with matching cipher suites, ALPN h2, and sticky proxy exit IP. 2. HTTP/2 SETTINGS and Chromium pseudo-header order (:method, :authority, :scheme, :path) plus sec-ch-ua and sec-fetch-* headers. 3. POST /Solver/solve inputs (engine, userAgent, acceptLanguage, pageOrigin, pageUrl, cfBeacon, session). 4. End-to-end continuity from /fp and ips.js to /tl and protected API calls.
Figure 1. Aligning TLS ClientHello (JA4), HTTP/2 pseudo-header order, and Client Hints with POST /Solver/solve telemetry inputs. Diagram by Catmouse Engineering.

How do you align SolveRequest fields with your HTTP client stack?

Pass the exact storefront URL, language header, and browsing persona to POST /Solver/solve so the generated telemetry matches the headers your HTTP client sends on the wire.

The Python snippet below shows how to populate pageOrigin, pageUrl, cfBeacon, session, and acceptLanguage when calling POST https://kasadaapi.catmouse.ai/Solver/solve:

import os
import requests

r = requests.post(
    "https://kasadaapi.catmouse.ai/Solver/solve",
    headers={"x-api-key": os.environ["CATMOUSE_KEY"]},
    json={
        "ipsBody": "<contents of the ips.js response, as UTF-8 text>",
        "ipsUrl": "https://www.example.com/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/ips.js?x-kpsdk-v=j-1.2.899&x-kpsdk-im=ZXhhbXBsZQ",
        "ctToken": "<x-kpsdk-ct response header of the /fp request>",
        "kpsdkV": "j-1.2.899",
        "tz": "America/New_York",
        "tzOffset": 240,
        "acceptLanguage": "en-US",
        "engine": "chrome",
        "pageOrigin": "https://www.example.com",
        "pageUrl": "https://www.example.com/checkout",
        "cfBeacon": False,
        "session": "returning",
    },
    timeout=60,
)
print(r.status_code, r.text)

What transport consistency checks should run before POST /tl?

Before deploying a new HTTP client worker, verify four transport invariants across your /fp, ips.js, /tl, and protected API calls:

  1. Pin one sticky proxy exit per session: Never switch the outbound proxy IP between fetching /fp, posting to /tl, and calling the protected API route.
  2. Let the solver enforce coherent User-Agents: As noted in /openapi.json, if an incoherent userAgent override is sent for the chosen engine, the server replaces it with the engine default. Always use the same User-Agent and matching sec-ch-ua headers on your target HTTP session.
  3. Send accurate pageUrl and cfBeacon values: On web targets, pageUrl supersedes pageOrigin for the challenge iframe referrer, and cfBeacon should be set to true when the embedding page injects Cloudflare Web Analytics.
  4. Keep Accept-Language identical: If you pass "acceptLanguage": "en-US" to POST /Solver/solve, send a matching Accept-Language header on every HTTP request to the target host.

Key takeaways

  • Tokens are bound to transport traits: A passing /tl response will still be blocked on checkout if your TLS ClientHello (JA4), HTTP/2 pseudo-header order, or proxy IP changes mid-session.
  • Match Chromium HTTP/2 framing: When using "engine": "chrome", configure your HTTP/2 client to send :method, :authority, :scheme, :path and coherent sec-ch-ua Client Hints.
  • Populate pageUrl, cfBeacon, and session: Give POST /Solver/solve the exact embedding page context (pageOrigin, pageUrl, cfBeacon, and session: "fresh" | "returning").
  • Reuse connections per session: Keep a persistent HTTP/2 connection pool pinned to one proxy exit IP for the full lifecycle of each account session.

Conclusion and scope

Applying these transport coherence recommendations ensures that the outer TLS 1.3 handshake, HTTP/2 frame layout, and Client Hints headers emitted by your HTTP client align with the inner telemetry payload produced by POST /Solver/solve.

Scope and limitations. All SolveRequest field descriptions (engine, userAgent, acceptLanguage, pageOrigin, pageUrl, cfBeacon, session) are taken from the live Catmouse OpenAPI 3.1 contract (/openapi.json) as of 2026-10-24. No pass-rate, latency, or throughput claims are made. Test only against systems you own or have explicit written authorization to audit.

Evidence and sources

The protocol specifications and solver parameters discussed in this guide are grounded in the primary references below:

Methodology and limits. Documented: IETF/W3C transport specifications and the verified SolveRequest parameters in /openapi.json. Not claimed: proprietary CDN scoring weights or numerical benchmark figures. Reviewed 2026-10-24.

Frequently asked questions

Why does a valid x-kpsdk-ct token still get blocked on the protected API route?

Solving the challenge payload is only half of the protocol check. If your HTTP client changes its proxy exit IP, TLS ClientHello (JA4), HTTP/2 framing, User-Agent, or sec-ch-ua Client Hints between /fp, /tl, and the protected request, the edge invalidates the session.

What HTTP/2 pseudo-header order does a standard Chromium browser send?

Chromium browsers transmit HTTP/2 pseudo-headers in the order :method, :authority, :scheme, :path, whereas Firefox and Safari use different ordering conventions alongside distinct HTTP/2 SETTINGS frame values.

How does POST /Solver/solve handle an incoherent userAgent string?

Per the Catmouse OpenAPI 3.1 contract (/openapi.json), userAgent is an optional override on SolveRequest, and an incoherent User-Agent for the selected engine is automatically replaced by the engine default.

What do pageOrigin, pageUrl, cfBeacon, and session control in SolveRequest?

On web solves, pageOrigin and pageUrl specify the storefront page embedding the challenge iframe (pageUrl supersedes pageOrigin for referrer telemetry), cfBeacon indicates whether Cloudflare Web Analytics is present, and session selects fresh or returning browsing persona.

Should my HTTP client reuse the same TLS connection for /fp, ips.js, /tl, and checkout?

Yes. Keeping a persistent HTTP/2 connection over a single sticky proxy exit ensures that the TLS session, JA4 fingerprint, and peer IP address remain identical across the entire challenge and protected API sequence.