Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I think that once I used

export http_proxy=http://user:password@address:port/

successfully. But now when I use wget it shows

Error parsing proxy URL http://user:passwordaddress:port/: Bad port number.

Why it ignores the @ symbol? How to make it work?

I also tried

wget --proxy-user=USERNAME --proxy-password=PASSWORD 

But it returned

Proxy request sent, awaiting response... 407 Proxy Authentication Required 2011-06-09 14:01:18 ERROR 407: Proxy Authentication Required.

share|improve this question
Does the user or password contain a # or / character by any chance? In which case you may need to URI-encode it (%23, %2F). – Stéphane Chazelas Nov 18 '12 at 16:51
Thanks Stephane- encoding the password did the trick – Avindra Goolcharan Jul 16 '14 at 14:38
up vote 3 down vote accepted

Did you try the following syntax ?

   http_proxy=http://address:port/ wget --proxy-user=USERNAME --proxy-password=PASSWORD http://url
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.