我想通过 wget
使用代理下载一些东西:
HTTP Proxy: 127.0.0.1
Port: 8080
代理不需要用户名和密码。
我该怎么做?
最佳答案
对于通过/etc/wgetrc
的系统的所有用户或仅通过~/.wgetrc
文件的用户:
use_proxy=yes
http_proxy=127.0.0.1:8080
https_proxy=127.0.0.1:8080
或通过放置在 URL 之后的 -e
选项:
wget ... -e use_proxy=yes -e http_proxy=127.0.0.1:8080 ...
https://stackoverflow.com/questions/11211705/