这几天python脚本中使用requests模块发现如下错误:
File "/usr/local/python2710/lib/python2.7/site-packages/requests/adapters.py", line 426, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))
分析原因
网上的资料说,https的请求,或者其它原因(待调研)
参考文献
http://zhidao.baidu.com/link?url=FLqpVRUeNuCsyMZmsVTerLvARc_SrSA5C4XVlSSeE81nIZ1PnTeWKV8-hUL7Oue_bbYZ8k6m4I75xYsuRz3Gru_rLOu8cKjDLv9gaXgwuVu
http://bugs.python.org/issue23054
http://stackoverflow.com/questions/28557466/python-requests-exception-connectionerror-connection-aborted-badstatusline