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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With