Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to get wget running behind a proxy. Since Ubuntu didn't support providing authentication information for the proxy (the one in the system settings), I had to use a ntlm proxy (in my case, I use cntlm). In the network settings I have set the proxy to 127.0.0.1:3128, which works fine for Chrome. APT has its own configuration file, where I've also set the proxy to 127.0.0.1:3128. Both work like a charm.

Then I tought it would be nice to have a working wget behind the proxy also, so I have edited the /etc/wgetrc, and entered http_proxy = http://127.0.0.1:3128 (additionally I have set the same as environment variable). While wget does use the local proxy, the authentication doesn't quite work. I get back an 407 Authentication required error back, which is funny, because the local proxy itself doesn't require any authentication (the local proxy connects to the company proxy, using my credentials).

Has anybody got an idea, why wget can't connect using the cntlm proxy?

share|improve this question
Take a look at How to run Wget behind a Proxy server – Mitch Sep 13 '12 at 6:34
@Mitch As I've said, I have already set the proxy settings in wgetrc, it does connect to my local proxy, but it doesn't succeed, because the Authentication failed (but there is no need to authenticate, my local proxy doesn't need any credentials). I also tried entering the company proxy (and also http_user and http_password) in the wgetrc, but it still doesn't work. – Ahatius Sep 13 '12 at 6:43

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.