Skip to content
Anti-bot systems

What HTTP clients send before you configure anything

Nine HTTP clients and a browser, captured at the byte level. The browser sent 11 headers; the median library sent 4, in a different order.

The finding

11 vs 4headers from a Chromium navigation, against the median library

A Chromium navigation sent 11 headers. The nine libraries tested sent between 2 and 7, with a median of 4.

Measured by us Sample 10 clients (9 libraries, 1 Chromium browser), one request each on 2026-08-29; libraries repeated 5 times each on 2026-10-21, byte-identical How it was measured Download the data CSV, JSON

On this page 12 sections
  1. Method
  2. What each client sent
  3. Finding 1: the browser sends almost three times as many headers
  4. Finding 2: Node’s fetch lowercases every header name
  5. Finding 3: two clients send no user agent at all
  6. Finding 4: Accept-Encoding is the widest divergence
  7. Finding 5: header order repeats exactly, so it is a signature
  8. What this means in practice
  9. How much of the gap you can actually close
  10. Reproducing it
  11. Download the data
  12. Limits of this study

A Chromium navigation sent 11 request headers. The nine HTTP libraries we tested sent between 2 and 7, with a median of 4, and none of them sent the browser’s order. These headers come from the library rather than from your code, they repeat exactly from one request to the next, and they differ enough between libraries to identify which one made the request.

The gap is visible in the first few lines of the request, before anything you configure has a chance to matter.

Method

On 29 August 2026, at about 20:09 UTC, on one Mac, a raw TCP listener on 127.0.0.1:8799 accepted each connection, read bytes until the end of the header block, recorded them verbatim and returned a minimal 200. No proxy, no TLS and no framework sat in the path, so what is recorded is what the client put on the wire.

Each of the nine libraries made one plain GET /probe over HTTP/1.1 with no options, no configured headers and no session reuse. The browser row is one top-level navigation to the same address from the Chromium engine built into a desktop app, which reported Chrome/148.0.7778.280 in its User-Agent. Versions are given in the table. Behaviour changes between releases, so treat every row as describing that version rather than the library in general.

On 21 October 2026 we repeated the nine library requests five times each, 45 requests in all, with the same versions (Go was 1.24.4 and PHP 8.5.11 on that run). Each library produced one header order across its five requests, and every header block was byte-identical to the August capture. The browser was not repeated. The full listener is at the end of this page.

What each client sent

Request headers sent by default on a plain GET, 29 August 2026 Drawn from the table below.
Request headers sent by default on a plain GET, 29 August 2026. Bar chart of Headers by Client.10 rows, drawn from the table that follows this chart.curl 8.7.1curl 8.7.1: 33GNU wget 1.25.0GNU wget 1.25.0: 55python-requests 2.32.3python-requests 2.32.3: 55python-urllib 3.9python-urllib 3.9: 44python-httpx 0.27.2python-httpx 0.27.2: 55Node 24.2.0 global fetchNode 24.2.0 global fetch: 77Node 24.2.0 node:httpNode 24.2.0 node:http: 22Go 1.24 net/httpGo 1.24 net/http: 33PHP file_get_contentsPHP file_get_contents: 22Chromium, navigationChromium, navigation: 1111024681012 headersRequest headers sent by default on a plain GET, 29 August 2026. Bar chart of Headers by Client.10 rows, drawn from the table that follows this chart.curl 8.7.1curl 8.7.1: 33GNU wget 1.25.0GNU wget 1.25.0: 55python-requests 2.32.3python-requests 2.32.3: 55python-urllib 3.9python-urllib 3.9: 44python-httpx 0.27.2python-httpx 0.27.2: 55Node 24.2.0 global fetchNode 24.2.0 global fetch: 77Node 24.2.0 node:httpNode 24.2.0 node:http: 22Go 1.24 net/httpGo 1.24 net/http: 33PHP file_get_contentsPHP file_get_contents: 22Chromium, navigationChromium, navigation: 1111051015 headers
Client Headers User-Agent Header order as sent
curl 8.7.1 3 Yes Host, User-Agent, Accept
GNU wget 1.25.0 5 Yes Host, User-Agent, Accept, Accept-Encoding, Connection
python-requests 2.32.3 5 Yes Host, User-Agent, Accept-Encoding, Accept, Connection
python-urllib 3.9 4 Yes Accept-Encoding, Host, User-Agent, Connection
python-httpx 0.27.2 5 Yes Host, Accept, Accept-Encoding, Connection, User-Agent
Node 24.2.0 global fetch 7 Yes host, connection, accept, accept-language, sec-fetch-mode, user-agent, accept-encoding
Node 24.2.0 node:http 2 No Host, Connection
Go 1.24 net/http 3 Yes Host, User-Agent, Accept-Encoding
PHP file_get_contents 2 No Host, Connection
Chromium, navigation 11 Yes Host, Connection, Upgrade-Insecure-Requests, User-Agent, Accept, Sec-Fetch-Site, Sec-Fetch-Mode, Sec-Fetch-User, Sec-Fetch-Dest, Accept-Encoding, Accept-Language

Ten clients produced nine distinct header orders, and none of the nine libraries matches the browser. The one collision is node:http and PHP’s file_get_contents: both sent only Host and Connection, in that order, and differ only in the value, keep-alive against close.

Finding 1: the browser sends almost three times as many headers

Eleven against a median of four. More importantly, the extra headers are not decorative. Four of them belong to the Fetch Metadata set, which a browser emits to describe the context of the request:

Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document

Not one of the nine libraries sent these on a plain request. Node’s fetch sent a single sec-fetch-mode: cors and nothing else from the set. A server that expects a navigation and receives no Sec-Fetch-Dest has learned something before it reads the user agent.

Finding 2: Node’s fetch lowercases every header name

This is the most distinctive single result in the study. HTTP header names are case-insensitive, so lowercasing is legal. It is also unique here: every other client, and the browser, sent canonical capitalisation.

# Node 24 global fetch, exactly as sent
GET /probe HTTP/1.1
host: 127.0.0.1:8799
connection: keep-alive
accept: */*
accept-language: *
sec-fetch-mode: cors
user-agent: node
accept-encoding: gzip, deflate

Two further details sit in those eight lines. The user agent is the bare string node. And accept-language: * is a value the browser in this study did not send; it sent en-GB, a real language preference. A request claiming to be a browser through this client contradicts itself three ways before the first byte of the body.

Finding 3: two clients send no user agent at all

node:http and PHP’s file_get_contents each sent two headers: Host and Connection. Nothing else. A two-header request is not a browser request, and it is not close enough for the absence to be ambiguous.

This can matter more than a wrong user agent does. A filter can reasonably treat a missing User-Agent as a stronger signal than an unrecognised one, because ordinary browser traffic always carries something.

Finding 4: Accept-Encoding is the widest divergence

Value sent Clients
Not sent at all curl, node:http, PHP
identity wget, python-urllib
gzip Go net/http
gzip, deflate Node global fetch
gzip, deflate, br, zstd python-requests, python-httpx, Chromium

Only two of the nine libraries advertise the same encoding set as the browser. The rest are distinguishable on this line alone. There is also a cost implication: a client asking for identity receives uncompressed responses, and on metered bandwidth that is billable traffic spent on nothing.

Finding 5: header order repeats exactly, so it is a signature

In the October repeat, every library sent the same order on all five requests, byte for byte the same as in August. Order comes from the library’s internal structures rather than from the request, so it is consistent and it is not something you set by accident. Three orderings are worth noting:

  • python-urllib puts Accept-Encoding before Host. No other client tested places anything before Host.
  • python-httpx puts User-Agent last. curl, wget, python-requests and Go send it second and python-urllib third; Node’s fetch sends it sixth of seven and the browser fourth.
  • The browser puts Connection second, then Upgrade-Insecure-Requests, which no library sent at all.

Whether you can put a copied browser header set into the browser’s order depends on the library. On 21 October we passed the browser’s nine other headers, in the browser’s order, to three clients, one request each. python-requests kept its own defaults where they always sit and appended the rest, so the request still opened Host, User-Agent, Accept-Encoding, Accept, Connection. python-httpx sent the browser’s eleven header names in exactly the browser’s order. curl followed the order it was given and sent no Connection header at all.

What this means in practice

Three conclusions follow from the data, and one non-conclusion.

Copying a browser user agent onto a default client makes the request more distinctive, not less. The claim is one line; the contradiction is spread across the header count, the ordering, the missing Fetch Metadata set and the encoding list. Changing one field while leaving the rest untouched creates a combination that neither a browser nor an honest library produces.

A proxy does not fix any of this. Over HTTPS through a CONNECT tunnel the headers travel encrypted inside it, so the proxy neither sees nor changes them, and the result is identical through any proxy, in any country, from any address category. Over plain HTTP, RFC 9110 requires a proxy to add a Via header and to remove or replace the hop-by-hop Connection field, which changes the request without making it look any more like a browser. This is the same reason TLS fingerprinting is unaffected by proxy choice, and it explains a common and expensive misunderstanding about what better proxies buy you.

If you want to look like a browser, send what a browser sends. That means all eleven headers, in the browser’s order, with the Fetch Metadata set matching the kind of request you are making. Anything less is a partial disguise, and a partial disguise is a distinctive one.

The non-conclusion: none of this establishes that any particular site uses these signals, or how it weights them. This study measures what clients emit, not what servers do with it. Treat it as a map of what is visible, not as evidence about any given target’s defences.

How much of the gap you can actually close

The header layer is the cheapest layer to fix and the one that closes least. It is worth being precise about what each step buys.

Step Closes Leaves open
Set a current browser user agent One line Count, order, Fetch Metadata, encodings, handshake
Send the browser’s full header set Count and content Order, the handshake
Send them in the browser’s order Order, where the library permits it The handshake
Use a client that mimics a browser TLS stack The handshake Behaviour and timing
Drive a real browser engine Everything above Cost, and automation defaults

Two things follow. The first three rows are free and none of them reaches the handshake, which is sent before any header; our ClientHello study measures that layer for the same clients. And row three depends on the client: in our check httpx and curl accepted the caller’s order and requests did not.

This is why the ladder matters more than any single step. Stopping after row one leaves the largest signal untouched while adding a contradiction, which is worse than sending nothing. If the target is defended enough that headers matter, the work does not end at the header layer, and if it is not, the default user agent was never the problem.

The proxy settings for these clients are in our guides to curl, Python requests and httpx and Node.js. None of those settings changes the headers above.

Reproducing it

The listener is about twenty lines of Python with no dependencies. Run it, point a client at the port, and read the file it writes.

import socket, json, threading

def handle(conn):
    conn.settimeout(3)
    data = b""
    while b"\r\n\r\n" not in data and len(data) < 65536:
        chunk = conn.recv(4096)
        if not chunk:
            break
        data += chunk
    conn.sendall(b"HTTP/1.1 200 OK\r\nContent-Length: 3\r\n"
                 b"Connection: close\r\n\r\nok\n")
    conn.close()
    with open("captures.jsonl", "a") as f:
        f.write(json.dumps({"raw": data.decode("latin-1")}) + "\n")

s = socket.socket()
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(("127.0.0.1", 8799))
s.listen(64)
while True:
    c, _ = s.accept()
    threading.Thread(target=handle, args=(c,), daemon=True).start()

Then send one request from each client you care about:

curl -s http://127.0.0.1:8799/probe -o /dev/null
wget -q -O /dev/null http://127.0.0.1:8799/probe
python3 -c "import requests; requests.get('http://127.0.0.1:8799/probe')"
node -e "fetch('http://127.0.0.1:8799/probe')"

Run under Python 3.9.6 on 21 October 2026, those four commands wrote four captures. The second header line of the first three was User-Agent: curl/8.7.1, User-Agent: Wget/1.25.0 and User-Agent: python-requests/2.32.3; Node’s capture opened with a lowercase host: and connection: keep-alive. Run it against your own versions. The point of publishing the method rather than only the table is that your results are the ones that apply to you.

Download the data

The captures are published as files under CC BY 4.0. Reuse them with a link to this page.

  • default-request-headers.csv: one row per client, 10 rows, with the header count, the order as sent, name casing, and the User-Agent, Accept, Accept-Encoding, Accept-Language and Connection values.
  • default-request-headers.json: the same rows with every raw header line, plus the October repeat and the header-order check.

An empty cell in a header-value column means the client did not send that header.

Limits of this study

  • One platform, one browser request. The libraries were captured once and then repeated five times each with the same versions; the browser was captured once. Defaults change between releases and can differ by operating system.
  • Plain HTTP only. This measures the header layer. The TLS handshake carries a separate signature that arrives earlier and is not covered here.
  • One browser. The browser row is a Chromium build. Firefox and Safari send different sets, and this study does not measure them.
  • HTTP/1.1 only. The listener speaks HTTP/1.1, so every capture here is HTTP/1.1. Over HTTP/2 the request is carried as compressed header fields preceded by pseudo-headers, and the encoding differs, so these orderings should not be assumed to transfer unchanged to an HTTP/2 connection.
  • No claim about detection. What servers do with these differences is outside what a listener can observe. A signal being visible is not evidence that it is used.

Download the data

The raw results behind this study, as files. Reuse them under CC BY 4.0 with a link to this page.

Frequently asked questions

Does changing the user agent make my scraper look like a browser?
No, and it can make things worse. In this study the browser sent 11 headers and the median library sent 4, in a different order, without the Fetch Metadata set and often with a different Accept-Encoding list. Changing one line while leaving the rest untouched creates a combination neither a browser nor an honest client produces.
Will better proxies fix this?
No. Over HTTPS through a CONNECT tunnel the headers are encrypted inside the tunnel, so the proxy neither sees nor changes them, and the result is identical through any proxy, from any country and from any category of address. Over plain HTTP, RFC 9110 requires a proxy to add a Via header and to remove or replace the Connection field, which changes the request without making it look more like a browser.
Which client is closest to a browser by default?
Node's global fetch sent the most headers of the libraries tested, at seven, but it is also the most distinctive, because it is the only one that lowercases every header name and it sends the user agent string "node". By header count and content, python-requests and python-httpx are closer to ordinary browser traffic.
Can I send a browser's headers in the browser's order?
It depends on the library. In our check, python-httpx sent a copied browser header set in exactly the browser's order and curl followed the order it was given, while python-requests kept its own five defaults in their usual positions and appended the rest.
What are the Sec-Fetch headers and why do they matter?
They are the Fetch Metadata request headers, which a browser sends to describe the context of a request: its origin relationship, its mode, whether a user initiated it and what kind of resource it expects. No library tested sent the full set, so their absence distinguishes a library from a browser regardless of the user agent.
Can I reproduce these results?
Yes, and the full listener is printed in the article. It is about twenty lines of Python with no dependencies. Run it, send one request from each client you use, and read the captured bytes. Your own versions are the ones that apply to you.

Sources

  1. RFC 9110: HTTP Semantics, the User-Agent, Accept, Accept-Encoding, Connection and Via fields
  2. W3C: Fetch Metadata Request Headers, the Sec-Fetch-* set

Read this page as Markdown · Quote it freely under CC BY 4.0 with a link back.