title: HTTPS proxies not working with Python's requests module
body: <p>I'm pretty new to Python and I've been using their requests module as a substitute for PHP's cURL library. My code is as follows   </p>
  
  <pre><code>import requests
  import json
  import os
  import urllib
  import math
  import sys
  
  def main() :    
     url = 'https://api.com'
  
     headers = {'Content-Type': 'application/json; charset=utf-8',
                'User-Agent': '(iPhone; iOS 7.0.4; Scale/2.00)'}
  
     d = {'token': "12345"}
  
     proxies = {
        "https": "https://27.254.52.99:8080",
     }
  
     post = json.dumps(d);
     r = requests.post(url, data=post, headers=headers, proxies=proxies)
     print r.json
  
  if __name__ == "__main__":
      main()
  </code></pre>
  
  <p>However, I'm greeted with the following error:</p>
  
  <pre><code>File "test.py", line 42, in test
  r = requests.post(url, data=post, headers=headers, proxies=proxies)
  File "/Library/Python/2.7/site-packages/requests-2.2.1-py2.7.egg/requests/api.py", line 88, in post
  return request('post', url, data=data, **kwargs)
  File "/Library/Python/2.7/site-packages/requests-2.2.1-py2.7.egg/requests/api.py", line 44, in request
  return session.request(method=method, url=url, **kwargs)
  File "/Library/Python/2.7/site-packages/requests-2.2.1-py2.7.egg/requests/sessions.py", line 383, in request
  resp = self.send(prep, **send_kwargs)
  File "/Library/Python/2.7/site-packages/requests-2.2.1-py2.7.egg/requests/sessions.py", line 486, in send
  r = adapter.send(request, **kwargs)
  File "/Library/Python/2.7/site-packages/requests-2.2.1-py2.7.egg/requests/adapters.py", line 381, in send
  raise ProxyError(e)
  ProxyError: Cannot connect to proxy. Socket error: [Errno 54] Connection reset by peer.
  </code></pre>