question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid HTTP request form (expected: authority or absolute, got: relative) from Burp

See original GitHub issue
Steps to reproduce the problem:
  1. I used mitmproxy as forwarding proxy from Burp but I keep getting these error. Without mitmproxy With mitmproxy

  2. And this is error I get from console

mitmdump -p 8779 -s proxy.py

Proxy server listening at http://*:8779
127.0.0.1:56560: clientconnect
 << Invalid HTTP request form (expected: authority or absolute, got: relative)
127.0.0.1:56560: HTTP protocol error in client request: Invalid HTTP request form (expected: authority or absolute, got: relative)
  1. I only get this error when use mitmproxy as upstream proxy on burp in Repeater tab from Burp
System information

Mitmproxy: 3.0.2 Python: 3.7.0 OpenSSL: OpenSSL 1.0.2p 14 Aug 2018 Platform: Darwin-18.0.0-x86_64-i386-64bit

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
jkryanchoucommented, Mar 6, 2019

@patrickjahns it turns out that you should use absolute paths rather than relative paths. Do it like

GET https://xxx.google.com/foo/bar
hostname: xxx.google.com
... ...

instead of

GET /foo/bar
hostname: xxx.google.com
... ...
6reactions
mhilscommented, Oct 29, 2018

I’m not sure how Burp’s forwarding proxy is supposed to work, but this looks like a configuration issue. Please take a look at https://docs.mitmproxy.org/stable/concepts-modes/.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid HTTP request form (expected: authority or absolute, got
Hello - I'm trying to set up mitmdump as a reverse proxy, proxying into a set of servers via their private IP addresses...
Read more >
Invalid HTTP request form (expected: authority or absolute, got
Steps to reproduce the problem: I used mitmproxy as forwarding proxy from Burp but I keep getting these error. Without mitmproxy
Read more >
Linux or window is the same :p -> HttpException('Invalid HTTP ...
Linux or window is the same :p -> HttpException('Invalid HTTP request form (expected: authority or absolute, got: relative)').
Read more >
proxy's problem - Burp Suite User Forum - PortSwigger
HI I had setting proxy 127.0.0.1:8080 and let browser also listen 127.0.0.1:8080, but when I request https://www.yahoo.com.tw , burpsiute event ...
Read more >
HTTP Request Smuggling/HTTP Desync Attacks (language of ...
~ The technique for interfering with the methods a web site processes sequences of HTTP requests that are received from one or more...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found