LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   wget through proxy (http://www.linuxquestions.org/questions/linux-networking-3/wget-through-proxy-353308/)

TheRealDeal 08-14-2005 10:32 PM

wget through proxy
 
Hi all.

Hopefully someone can help me out here I am really stuck, and stumped.

My workplace has just put in a proxy server, which each user needs to log into to be able to access the web.

If I open firefox after I have put in the proxy server details it prompts me to enter a username and password. I put these in and all works fine.

However if I try and wget a file it won't work. I use wget daily and need to keep using it.

I have edited the .wgetrc file and added the following...

http_proxy = http://10.1.1.1:80/
ftp_proxy = http://10.1.1.1:80/
proxy_user = user123
proxy_passwd = test123

use_proxy = on

Each time I try and wget a file I get this...

ERROR 407: Proxy Access Denied.

Can anyone please help me? I'm getting to the desperate point here.

Thanks alot.

Regards
Craig

carl.waldbieser 08-14-2005 11:57 PM

Re: wget through proxy
 
Quote:

Originally posted by TheRealDeal
Hi all.

Hopefully someone can help me out here I am really stuck, and stumped.

My workplace has just put in a proxy server, which each user needs to log into to be able to access the web.

If I open firefox after I have put in the proxy server details it prompts me to enter a username and password. I put these in and all works fine.

However if I try and wget a file it won't work. I use wget daily and need to keep using it.

I have edited the .wgetrc file and added the following...

http_proxy = http://10.1.1.1:80/
ftp_proxy = http://10.1.1.1:80/
proxy_user = user123
proxy_passwd = test123

use_proxy = on

Each time I try and wget a file I get this...

ERROR 407: Proxy Access Denied.

Can anyone please help me? I'm getting to the desperate point here.

Thanks alot.

Regards
Craig

What kind of authentication does the proxy require? At my work, they put in MS ISA, and it required NTLM authentication. That was a real pain for me for a while. I found this python authenticating proxy:
http://www.geocities.com/rozmanov/ntlm/

Basically, it let me hard code credentials for an NTLM account into a file. I then point my apps to use it as a proxy, and it uses the authenticating proxy as a proxy, and finally the packets get to where they are supposed to be going.

TheRealDeal 08-15-2005 12:17 AM

Hi.

Thanks alot for the reply. It is ntlm that they use.

I have just installed the package that you referred me to. I have edited the /etc/ntlmaps/server.cfg file to what I believe is correct.

Is there a certain thing I need to change on the wget side to make it use ntlmaps instead?

Thanks
Craig

carl.waldbieser 08-15-2005 06:58 PM

Quote:

Originally posted by TheRealDeal
Hi.

Thanks alot for the reply. It is ntlm that they use.

I have just installed the package that you referred me to. I have edited the /etc/ntlmaps/server.cfg file to what I believe is correct.

Is there a certain thing I need to change on the wget side to make it use ntlmaps instead?

Thanks
Craig

I think you might have to export an environment variable like HTTP_PROXY.

vireshwali 09-14-2005 07:06 AM

i agree to this also.
a same problem for me too
just execute this before doing a wget on a console

export http_proxy="http://proxy_ip:proxy_port"
now start using wget

vireshwali 09-14-2005 07:07 AM

oops seems the post changed :p to a smily.

am trying again

export http_proxy="http://<proxy_ip>:<proxy_port>"


All times are GMT -5. The time now is 10:02 AM.