LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't use wget (https://www.linuxquestions.org/questions/linux-software-2/cant-use-wget-352055/)

ust 08-10-2005 11:13 PM

Can't use wget
 
In my office network , wehave firewall and the linux server through the proxy server to connect to internet , but the server can't use wget now , could suggest how to setup to use wet ? thx

Matir 08-10-2005 11:23 PM

Wget reads proxy information from the http_proxy and ftp_proxy environment variables. As in:
Code:

http_proxy="http://proxyserver:PORT" wget http://www.google.com

ust 08-11-2005 03:25 AM

thx reply , which file that I should modify ? thx

Ephracis 08-11-2005 03:30 AM

You do not need to modify a file. Just type http_proxy="http://proxyserver:PORT"

If you want that to stay, then you may modify ~/.bashrc, if you are using bash as your shell.

ust 08-11-2005 04:16 AM

thx reply ,

it seems ask for the login , could suggest how can I type in the login name and password ?


Proxy request sent, awaiting response... 407 Proxy Authentication Required
17:06:47 ERROR 407: Proxy Authentication Required.


thx in advance

Ephracis 08-11-2005 09:52 AM

Naah.. (deleted)

Matir 08-11-2005 09:59 AM

Code:

      --proxy-user=USER    set USER as proxy username.
      --proxy-passwd=PASS  set PASS as proxy password.

To me, it seems like bad software design to make the proxy name be an env. variable and proxy authentication command-line options, but oh well, that's the way it is.


All times are GMT -5. The time now is 08:43 AM.