Reputation: 832
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?
Upvotes: 13
Views: 21303
Reputation: 1651
I set up the proxy on Ubuntu using general system settings (manual option).
The problem was I pasted the proxy URL with a port, while the port is also separately specified there, in different field.
Upvotes: 0
Reputation: 1
make us Use of "--no-proxy" Example : wget https://dl-ssl.google.com/linux/linux_signing_key.pub --no-proxy
This will elimimate the current proxy and try to download what ever we need..
Upvotes: 0
Reputation: 832
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.
Upvotes: 29