title: HTTP_PROXY not working
body: <p>I have a situation where I can download a package from the internet using curl through a proxy server using the command </p>
  
  <p><code>curl -x http://&lt;proxy_host&gt;:&lt;proxy_port&gt; --proxy-user &lt;proxy_user&gt;:&lt;proxy_user_password&gt; -L http://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/&lt;package&gt;.rpm -o &lt;package&gt;.rpm
  </code></p>
  
  <p>But if I set the proxy with the command:</p>
  
  <p><code>setenv HTTP_PROXY http://&lt;proxy_user&gt;:&lt;proxy_user_password&gt;@&lt;proxy_host&gt;:&lt;proxy_port&gt;</code></p>
  
  <p>and then I try to get the package with the command:</p>
  
  <p><code>curl -O http://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/package.rpm -o package.rpm</code></p>
  
  <p>it doesn't work, it just return time out after a long time. My intention is to provide to that server access to the internet outside the internal network and I'm using curl to test this.</p>
  
  <p>The OS is RedHat 6.9 and the shell that I'm using is '/bin/tcsh'.</p>
  
  <p>What I'm doing wrong in this case?</p>
  
  <p>Thanks for any help.</p>