Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
1  
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 at 14:38

1 Answer 1

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

 
discard

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.