命令行设置代理

来源:互联网 发布:淘宝卖家可以买东西吗 编辑:程序博客网 时间:2024/05/22 06:37
命令行代理设置:
区分http与https
For http/https proxy with or without authentication:


Run one of the following commands in cmd.exe


set http_proxy=http://your_proxy:your_port
set http_proxy=http://username:password@your_proxy:your_port
set https_proxy=https://your_proxy:your_port

set https_proxy=https://username:password@your_proxy:your_port

Windows的命令行下设置网络代理

需要设置http_proxy,http_proxy_user和http_proxy_pass三个环境变量就可以了。

在命令行下,执行如下命令:
set http_proxy=http://proxy.com:port/
set http_proxy_user=username
set http_proxy_pass=password

1 0