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?