Command Walk Agent, http_proxy and https_proxy setup issu

use a proxy on the command line in windows. Http_proxy and https_proxy are written as follows:

1, with quotation marks

set http_proxy="socks5://127.0.0.1:13569"   
set https_proxy="socks5://127.0.0.1:13569" 

2, no quotation marks

set http_proxy=socks5://127.0.0.1:13569
set https_proxy=socks5://127.0.0.1:13569

question:
1. If you use quotation marks, you will report an error:

D:\vagrant_env
 set http_proxy="socks5://127.0.0.1:13569"

D:\vagrant_env
 set https_proxy="socks5://127.0.0.1:13569"

D:\vagrant_env
 vagrant plugin install vagrant-vbguest
Installing the "vagrant-vbguest" plugin. This can take a few minutes...
C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.4.0/uri/rfc3986_parser.rb:67:in `split": bad URI(is not URI?): http://"socks5://127.0.0.1:13569" (URI::InvalidURIError)

2. It seems that you can"t turn it without quotation marks:

D:\vagrant_env
 set http_proxy=socks5://127.0.0.1:13569

D:\vagrant_env
 set https_proxy=socks5://127.0.0.1:13569

D:\vagrant_env
 vagrant plugin install vagrant-vbguest
Installing the "vagrant-vbguest" plugin. This can take a few minutes...
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

  no such name (https://gems.hashicorp.com/specs.4.8.gz)

Source: https://gems.hashicorp.com/

so, how should I write it?

Mar.04,2022

because socks5://127.0.0.1:13569 this is a socks5 agent, not a http agent.

Menu