How to set proxy for wget?
Type in command line :
$ export http_proxy=http://proxy_host:proxy_port
for authenticated proxy,
$ export http_proxy=http://username:password@proxy_host:proxy_port
and then run
$ wget fileurl
for https, just use https_proxy instead of http_proxy. You could also put these lines in your ~/.bashrc file so that you don't need to execute this everytime.
the following possible configs are located in /etc/wgetrc
just uncomment and use...
# 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