Last active
August 14, 2018 03:52
-
-
Save larryyangsen/3d8efa98bd83b9f1c448a770ad8d21b3 to your computer and use it in GitHub Desktop.
golang add http proxy, use mitmweb (https://mitmproxy.readthedocs.io/en/v2.0.2/mitmweb.html), mitmweb -p 9999
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
os.Setenv("HTTP_PROXY", "http://127.0.0.1:9999") | |
baseURL := "http://google.com" | |
resp, err := http.Get(baseURL) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment