You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is currently done intentional - usually you want to modify both and people forget about the header. You can accomplish what you want by modifying the underlying data object directly (flow.request.data.host).
There are a few similar things in the request and response classes - for example, if you modify the message body, the content-length header will be adjusted accordingly. I'm not sure what's the best way for us to handle this. @ALL: If you have any opinions on this behaviour, we'd love to hear them in the comments below.
mitmdump version:latest
I run the proxy with following command:
mitmdump -s proxy.py -U http://upstreamproxy
The proxy.py is like following:
What I expect is to change the www.verycd.com to IP in url but keep the host field still using www.verycd.com, like following:
But the mitmproxy always change the url and host at the same time I got following which the server does not accept
The text was updated successfully, but these errors were encountered: