Thursday, April 25, 2024
32
rated 0 times [  32] [ 0]  / answers: 1 / hits: 229972  / 1 Year ago, mon, january 9, 2023, 4:37:02

I'd like to know an equivalent to wget enabling me to set the proxy while calling the command (like wget --proxy=$http_proxy).



Any ideas ?


More From » command-line

 Answers
1

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:[email protected]:port/
https_proxy = http://username:[email protected]:port/
ftp_proxy = http://username:[email protected]: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/


This should work. I am assuming you already have proxy settings for all other applications.


[#29394] Wednesday, January 11, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
assionortly

Total Points: 423
Total Questions: 121
Total Answers: 115

Location: Chad
Member since Wed, Sep 30, 2020
4 Years ago
;