为 Windows 命令行设置代理

虽然通常来说我们都是在 Linux 下进行开发工作,即使在 Windows 下通常也会用 cygwin 之类的 shell,但在某些特殊情况下可能会需要用到 Windows 自带的命令行,为 Windows 命令行设置代理的原理和类 Linux shell 终端类似,实际上都是设置环境变量:

set http_proxy=http://10.123.234.123:456
set https_proxy=http://10.123.234.123:456

最后修改于 2019-01-25