All Emvero products use one prepaid credit balance. See how credits work

Start for free

How an HTTP/2 connection starts

Before its first request, an HTTP/2 client makes choices about settings, windows and frames. Those choices add evidence beyond the TLS handshake.

Published

On this page

Before the first request

HTTP/2 carries HTTP messages in binary frames and allows multiple streams to share a connection. Over HTTPS, TLS peers normally negotiate it with the ALPN identifier h2.

The client’s opening bytes include a fixed connection preface followed by a SETTINGS frame. SETTINGS tells the server how the client wants aspects of the connection to work. Other frames and the first request follow. RFC 9113 §3.4 defines the connection preface.

The browser’s networking code produces this sequence. Page JavaScript does not ordinarily choose its HTTP/2 settings or its encoder. Consequently, a client that copies a browser’s User-Agent header may still open the connection in a different way.

The choices available to an implementation

An HTTP/2 fingerprint selects details of that opening sequence for comparison. Different implementations can make different valid choices.

Observation What the choice describes
SETTINGS entries and their order Which limits and capabilities the client advertises
Initial connection WINDOW_UPDATE How much additional receive capacity it grants
Frame sequence before the first request How its connection setup is organised
Priority information How it expresses scheduling preferences, when present
Pseudo-header order How it arranges the request’s control information
Ordinary header order and compression How its HTTP code constructs and encodes fields

Flow control limits how much data a sender can transmit before the receiver grants more capacity. HTTP/2 has limits for the connection and individual streams. The opening connection window is 65,535 bytes; a WINDOW_UPDATE can increase it. These are protocol settings, not a measurement of the visitor’s bandwidth. RFC 9113 §5.2 explains the distinction.

Exact patterns change with software releases and configuration. A table claiming that one fixed setting always means Chrome or Firefox would need a dated set of captures and a clearly defined test environment. A synthetic example can illustrate the fields without proving which browser sends them.

Headers have both content and an encoding

HTTP/2 uses pseudo-headers, fields beginning with a colon, for control information such as :method, :scheme, :authority and :path. They precede ordinary fields. Field names are lowercase, unlike the freely chosen casing of names in HTTP/1.1. These rules come from RFC 9113 §8.

The header block is compressed with HPACK. Its encoder can reference a table entry, send a literal field, add a field to the dynamic table, or mark it never to be indexed. Strings can also use Huffman coding. RFC 7541 defines these representations.

This creates two separate comparisons. Two clients might send the same names in the same order, yet encode them differently. Conversely, a client’s encoded bytes can change because its dynamic table has a different history. Treating the compressed bytes as a permanent software identifier would preserve too much connection state.

The request itself also changes the header set. A form submission can add content headers; an authenticated request can add cookies or authorisation. A stable fingerprint can exclude selected request-dependent names while retaining useful order. A stricter record can preserve more details for diagnosis, provided collection respects the sensitivity of values.

How HTTP/2 complements TLS

TLS and HTTP/2 are produced by different parts of the client. A library imitating a browser’s ClientHello may still send its own HTTP/2 setup. A disagreement can reveal an incomplete imitation or an intermediary that reconstructed the connection.

That does not make the layers statistically independent. A single proxy that terminates TLS and opens its own HTTP/2 connection can change both at once. Counting those changes as two unrelated proofs would exaggerate the evidence.

An impersonation client can reproduce multiple layers. A real browser under automation naturally sends its own HTTP/2 behaviour. Matching settings therefore establish consistency with an implementation, without establishing who controls it.

Observation has boundaries

An ordinary application framework usually exposes decoded headers. It may have lost the original frame order and compression choices. A CDN or terminating proxy can replace the whole visible HTTP/2 connection. Evidence must be collected where the relevant connection is available.

An implementation may also inspect only the connection opening. That record cannot describe later requests, and a reused connection need not produce a fresh opening for each action. A failed or unavailable capture should remain missing evidence.

For timing rather than shape, a server can measure how long the peer takes to acknowledge its SETTINGS. The round-trip timing article explains how that observation can differ from a TCP round trip and why scheduling and connection reuse need care.