Error parsing proxy URL. Bad port number : <p>When I use wget command in RHEL 6.5, getting the error </p>

<p><code>Error parsing proxy URL. Bad port number</code>. </p>

<p>The command used to set the proxy was </p>

<p><code>export http_proxy="http_proxy://username:password@address:port/"</code>.</p>

<p>Yes I know this issue can be resolved by using  </p>

<p><code>http_proxy=address wget --proxy-user=username --proxy-password=&lt;password&gt; url</code>.</p>

<p>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?</p>
