1. Open a cmd window
2. Enter the following command, you can set up a proxy
set http_proxy=http://127.0.0.1:1087
set https_proxy=http://127.0.0.1:1087
set http_proxy_user=user
set http_proxy_pass=pass
set https_proxy_user=user
set https_proxy_pass=pass
If you want to turn off the proxy, simply the corresponding value to null to:
set http_proxy=
set https_proxy=
Verify the agency added successfully, you can not use the ping command, ping command because the agreement is not HTTP, it is not HTTPS, but the ICMP protocol.
Then it should be how to verify the correct way to do? Verify with the following command line, how to correctly can return results, on behalf of the proxy settings successful.
curl -vv http://www.google.com
In fact, it is to see whether Google can output the page's source code.
From
https://zcdll.github.io/2018/01/27/proxy-on-windows-terminal/