https://www.thegeekdiary.com/how-to-use-wget-to-download-file-via-proxy/
follow:
Without modifying your system files at /etc/wgetrc you could create a file at your home directory ~/.wgetrc. It will enable you to modify wget settings locally at user level. Now write the following at ~/.wgetrc to use wget behind a proxy server:
use_proxy = on
http_proxy = http://username:password@proxy.server.address:port/
https_proxy = http://username:password@proxy.server.address:port/
ftp_proxy = http://username:password@proxy.server.address:port/
If you do not have proxy username and password just write the proxy-address and port everywhere like,
http_proxy = http://proxy.server.address:port/
example :
export http_proxy=http://110.232.67.44:55443/
export https_proxy=http://110.232.67.44:55443/
export ftp_proxy=http://110.232.67.44:55443/
for checking the environement variables you can do :
env | grep proxy
This should work. I am assuming you already have proxy settings for all other applications.
Top comments (0)