skip to content

In Burp Repeater, how do you choose HTTP/1 or HTTP/2 for a replay, and which connection and message settings can change the result?

level: middleimportance: nice to knowfreq 8%

answer

  1. Inspector sets the protocol
  2. connection reuse differs per version
  3. automatic edits to the message
  4. Content-Length follows your edit
  5. defaults for a faithful replay

basics

~20 s

The protocol is chosen in Burp's Inspector under Request Attributes. Connection reuse, HTTP/2 ALPN override and message settings such as Update Content-Length can change what the server experiences, so keep defaults for a faithful replay.

solid answer

~30 s

In Burp Suite 2026.9 you select the protocol for a request in the Inspector, under Request Attributes. Repeater's Connections settings cover HTTP/1 connection reuse (idle connections close after five seconds), HTTP/2 connection reuse (on by default; turn it off if the server treats the first request on a connection differently) and Allow HTTP/2 ALPN override. Message modification settings, on by default, update Content-Length, unpack gzip, deflate and Brotli responses, normalise HTTP/1 line endings and strip the Connection header over HTTP/2, which many servers reject. For a retest, keep the defaults, match the reporter's protocol and note any deviation.

go deeper

for a junior

Recall that Inspector sets the protocol and that Repeater edits Content-Length for you by default.

for a middle

Explain the HTTP/1 and HTTP/2 connection reuse settings, ALPN override, and the four default message modifications.

for a senior

Keep a replay faithful: defaults on, protocol matched, deviations recorded, and any extra probe covered by the written scope.

for a principal

Set a team convention for what a retest record states about protocol and connection behaviour so reports can be reproduced across testers.

## What a replay has to preserve When a reviewer replays a reported finding, the aim is to send what the reporter sent. In Burp Repeater a request is not just text: the protocol it travels over, the way connections are reused and a few automatic edits to the message can all change what the server experiences. This answer covers the settings PortSwigger's documentation pages describe for Burp Suite Professional and Community 2026.9. ## Choosing HTTP/1 or HTTP/2 The protocol for a request is selected in Burp's Inspector, under Request Attributes; the HTTP messages page points to this when it says you can choose which protocol Burp uses to send the message. A related setting, Use selected protocol for cross-domain redirects, controls whether Repeater applies that selection when following cross-domain redirects. It is disabled by default, and Repeater then negotiates the protocol as normal. If the application sits behind a reverse proxy or load balancer, the client-facing protocol and the one the origin sees may differ. That is an architectural point to confirm with the owner, not something Repeater reveals, and it is a reason a result under one protocol need not carry over to the other. ## Connection settings (Connections group) | Setting | Default behaviour | Why it matters in a retest | |---|---|---| | HTTP/1 connection reuse | A setting you enable to reuse one connection for several HTTP/1 requests; Burp closes an idle connection after five seconds | Speeds sending and helps timing; a server may treat later requests on a connection differently | | HTTP/2 connection reuse | On: one TCP connection serves several HTTP/2 requests | Turn it off if the server treats the first request on a connection differently | | Allow HTTP/2 ALPN override | Opt-in: enable it to use ALPN to send HTTP/2 when the server does not advertise it | Changes which protocol the server is asked to speak; be able to say why it was on | ## Message modification settings 1. **Update Content-Length** is on by default, so an edited body is sent with a matching length. Without it, a hand edit to the body would leave the old length in place. 2. **Unpack compressed responses** is on by default and unpacks gzip, deflate and Brotli content so you read the body, not the compressed bytes. 3. **Normalize HTTP/1 line endings** is on by default and appends a carriage return before any bare newline, which reduces the risk of sending an invalid request. 4. **Strip Connection header over HTTP/2** is on by default because many HTTP/2 servers reject requests that contain that header. Each of these is a project setting, applied to the current project only. A tab's own settings menu can override them, and then the global values no longer apply to that tab. ## Using this when confirming a finding - **Keep the defaults for a faithful replay.** Each non-default setting is a deliberate difference from how a browser behaved, so it belongs in the notes. - **Match the protocol the reporter used.** If the finding came from a browser session over HTTP/2, an HTTP/1 retest is a different experiment. - **Treat a first-request effect as a finding in itself.** If behaviour changes only on the first request of a connection, disabling reuse is how you see it, and the owner needs to know the application depends on connection state. - **Do not widen the test through a setting.** Allowing an ALPN override to find out whether an unadvertised protocol answers is an extra probe; do it only when the written scope covers that question. ## What the owner's logs show The server sees a request over one protocol or the other, on a connection that is new or reused. Access logs record method, path, status and perhaps the protocol, and a front end may log connection reuse. A retest that quietly changed protocol or connection behaviour will therefore look different in logs from the reporter's original traffic, and a reviewer comparing the two may draw the wrong conclusion about whether the replay matched. ## Pitfalls - Reading a result as protocol-independent without trying the other protocol. - Leaving Update Content-Length off on a tab and sending a body whose length is stale. - Forgetting that a tab override replaces all the global settings for that tab.

  • A reported behaviour appears only on the first request over a connection. How do you check that in Repeater?
    Turn off HTTP/2 connection reuse for that tab, or leave HTTP/1 connection reuse disabled, so each send opens a new connection, then compare it with a send on a reused one. A difference tells the owner the application depends on connection state. Record which setting you changed, because it is a deliberate deviation from the defaults.
  • Why can an HTTP/1 retest of an HTTP/2 report be a different experiment?
    The server, or a front end in front of it, may handle the two protocols through different code paths, and the message framing and headers differ. A result under one need not hold under the other. Match the reporter's protocol first; try the other one as a separate, labelled check.

  • Assumes a result under HTTP/1 automatically holds under HTTP/2
  • Believes Update Content-Length is off by default and fixes the length by hand
  • Turns on the HTTP/2 ALPN override as a routine step in every retest
  • Thinks Repeater unpacking compressed responses changes what the server sent
  • Treats connection reuse as irrelevant to what the server observes

Assumes Burp Suite Professional and Community 2026.9, as PortSwigger's Repeater documentation pages (updated 22 September 2026) describe it; Burp releases are date-numbered and settings can change between them.