Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error parsing proxy URL. Bad port number

When I use wget command in RHEL 6.5, getting the error

Error parsing proxy URL. Bad port number.

The command used to set the proxy was

export http_proxy="http_proxy://username:password@address:port/".

Yes I know this issue can be resolved by using

http_proxy=address wget --proxy-user=username --proxy-password=<password> url.

But I want to install a package and during installation, it will need to download few other packages. so the proxy should be already set and ready before the installation. How can we resolve this?

like image 492
Ludwig Avatar asked Sep 30 '16 11:09

Ludwig


1 Answers

The password I used caused this issue as it had a # in it. I replaced # with %23 [UTF encoding] and now this is working fine.

like image 128
Ludwig Avatar answered Oct 12 '22 11:10

Ludwig