title: BadStatusLine Error in using Python, Requests
body: <p>I use Requests in Python but always encounter <em>BadStatusLine</em> Error.  </p>
  
  <p>My code is like followings:</p>
  
  <pre><code>import requests
  
  ip = 'xx.xx.xx.xx'
  port = 80
  proxies={
          'http': 'http://%s:%s'%(ip, port),
          'https': 'https://%s:%s'%(ip, port)
      }
  
  url = 'https://url'
  d = {'active_id': 117}
  
  r=requests.post(url, data=d, proxies=proxies)
  </code></pre>
  
  <p>The exeptions shows:</p>
  
  <pre><code>File "/root/untitled-5.py", line 13, in &lt;module&gt;
    r=requests.post(url, data=d,proxies=proxies, headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36'},verify=False)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 110, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 473, in send
    raise ConnectionError(err, request=request)
  
  requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))
  </code></pre>
  
  <p>I find some solutions from google. And I try to change the last line into:</p>
  
  <pre><code>1 r=requests.post(url, data=d, proxies=proxies, varify=False)
  2 r=requests.post(url, data=d, proxies=proxies, headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36'})
  </code></pre>
  
  <p>But no one really works. I wanna know why and how to handle this.
  Thx </p>