This content originally appeared on DEV Community and was authored by karenpanahi
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.
This content originally appeared on DEV Community and was authored by karenpanahi
karenpanahi | Sciencx (2021-11-12T17:09:20+00:00) proxy with wget. Retrieved from https://www.scien.cx/2021/11/12/proxy-with-wget/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.