Use Network Agent under command line windows terminal

The first step: the right to open the "Options Settings"

Step Two: Set your HTTP and HTTPS proxy port

Step three: Open cmd window, set the proxy variable

set HTTP_PROXY=http://127.0.0.1:12333
set HTTPS_PROXY=http://127.0.0.1:12333

If a user name and password,

set HTTP_PROXY=http://proxy.com:port
set HTTP_PROXY_USER=username
set HTTP_PROXY_PASS=password

set HTTPS_PROXY=http://proxy.com:port
set HTTPS_PROXY_USER=username
set HTTPS_PROXY_PASS=password

The role of the above command is to set the environment variable, do not worry, this environment variable will continue to cmd window closes, not the system environment variables.

How to cancel the proxy it:

netsh winhttp reset proxy

image

Step Four: Enjoy the speed bar

Just pull up a code speed improved a lot

image

Reference article

[1] github Issues - how the windows command line terminal using a proxy

Guess you like

Origin www.cnblogs.com/macrored/p/12190799.html