This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
requests library not working while global proxy enabled #5330
Labels
kind/triage
Unclassified issues
Problem Description
Once the Windows "Use a proxy server" option is enabled,
requests library in my addon will not work.
Example1:
However, when I disable the "Use a proxy server" option(which means traffic will not pass through mitmproxy),
Example2:
If I want to send a request every time mitmproxy catch a request to 'github.com'("Use a proxy server" is enabled):
Example3:
And this blocks mitmproxy and my browser.
However, if I add
timeout=5
tor = requests.get('https://mitmproxy.org/')
, this example turns into example 2 above.Similar issue on github:
#4572
Similar issues on stackoverflow:
https://stackoverflow.com/questions/66089365/requests-library-does-not-perform-http-requests-inside-mitmproxy
https://stackoverflow.com/questions/55066451/mtmproxy-http-get-request-in-script
https://stackoverflow.com/questions/66089365/requests-library-does-not-perform-http-requests-inside-mitmproxy
System Information
Mitmproxy: 8.0.0
Python: 3.9.7
OpenSSL: OpenSSL 1.1.1n 15 Mar 2022
Platform: Windows-10-10.0.19044-SP0
The text was updated successfully, but these errors were encountered: