wget 使用 Proxy

最近在透過 wget 抓 github 上的檔案,在環境中遇上了用 export HTTP_PROXY不吃的問題,後來找了一下才發現 wget 可以透過 修改 /etc/wgetrc 檔案去指定 proxy 居然就 worked了,真是奇妙~

 

You can set the default proxies for Wget to use for http, https, and ftp.

They will override the value in the environment.

#https_proxy = http://proxy.yoyodyne.com:18023/
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/

If you do not want to use proxy at all, set this to off.

#use_proxy = on

 

Author: