Skip to content

mitmproxy puts entire URL into GET #6588

Closed Answered by mhils
Tillerino asked this question in Q&A
Discussion options

You must be logged in to vote

You are using reverse proxy mode (which is typically invisible to the client), but you are also configuring a proxy on the client side. As a result, your client sends an absolute-form request (intended for a proxy) to mitmproxy, which forwards it unmodified to the target server. You can either:

  1. Not use a proxy, i.e. run curl http://localhost:5001/hello
  2. Run mitmproxy in regular mode, i.e. mitmdump -p 5001

If you want to run a regular proxy but change where the request is going, check out https://docs.mitmproxy.org/stable/overview-features/#map-remote.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tillerino
Comment options

Answer selected by Tillerino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants