title: pip ignore proxy setting
body: <p>I'm trying to search/install some packages on the server using a pip through a proxy.
  Server does not have direct access to <a href="https://pypi.python.org" rel="nofollow">https://pypi.python.org</a>.</p>
  
  <p>I run:</p>
  
  <pre><code>pip search --proxy 1.1.1.1:1111 lxml
  </code></pre>
  
  <p>(instead 1.1.1.1:1111 using real ip and port)</p>
  
  <p>and get python trace:</p>
  
  <pre><code>Exception:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 139, in main
      status = self.run(options, args)
    ......
    ......
    File "/usr/lib/python2.7/httplib.py", line 772, in connect
      self.timeout, self.source_address)
    File "/usr/lib/python2.7/socket.py", line 571, in create_connection
      raise err
  error: [Errno 111] Connection refused
  </code></pre>
  
  <p>When I try to run this command on the local computer (has direct access to <a href="https://pypi.python.org" rel="nofollow">https://pypi.python.org</a>), I get the correct result:</p>
  
  <pre><code> pip search --proxy 1.1.1.1:1111 lxml
   lxml                      - Powerful and Pythonic XML processing library combining
   libxml2/libxslt with the ElementTree API.
   ...
  </code></pre>
  
  <p>but when I run in local computer with wrong proxy settings :</p>
  
  <pre><code> search --proxy blablabla lxml
  </code></pre>
  
  <p>I got correct result:</p>
  
  <pre><code> lxml                      - Powerful and Pythonic XML processing library combining
   libxml2/libxslt with the ElementTree API.
   ...
  </code></pre>
  
  <p>This is mean that pip ignore <code>--proxy</code> settings?</p>
  
  <p>UPD:</p>
  
  <p>pip 1.3.1</p>