-
I'm sure I'm doing something completely wrong here.
I would have expected to see a request for
This is very strange, since
Now this is no quirk of the frontend or backend. I've tried Firefox as a frontend instead of curl, and I've used a different backend (which is where I started) - all with the same result. What's going wrong here? Am I missing a configuration? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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:
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. |
Beta Was this translation helpful? Give feedback.
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:
curl http://localhost:5001/hello
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.