Burp Suite User Forum

Create new post

Match & replace HTTP/2

Luigi | Last updated: Apr 21, 2022 11:24AM UTC

Hello everybody, I want to replace HTTP/2 in the request with this value, HTTP/1.1 I added this rule: Type: Request first line Match: HTTP/2 Replace: HTTP/1.1 Regex match: flagged Unfortunately, this rule doesn't work, Do you have any advice? Thanks

Hannah, PortSwigger Agent | Last updated: Apr 21, 2022 12:19PM UTC

Hi Are you trying to disable HTTP/2 traffic going through the proxy? If so, you will want to go to "Proxy > Options > Proxy listeners > Edit > HTTP" and uncheck the box that says "Support HTTP/2".

Luigi | Last updated: Apr 21, 2022 01:07PM UTC

Hi, I done this operation (to disable HTTP/2) but the request performed is always in HTTP2. For this reason I want replace HTTP/2 in the request.

Luigi | Last updated: Apr 21, 2022 01:34PM UTC

Small update: the rule I wrote seems to work. I can capture .js pages but i don't capture html traffic. Anyone have any ideas?

Hannah, PortSwigger Agent | Last updated: Apr 22, 2022 08:50AM UTC

Hi You can also go to "Project options > HTTP > HTTP/2" and uncheck the box that says "Default to HTTP/2 if the server supports it".

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.