Please do not mark it as a trivial duplicate of: Python requests giving errror: IndexError: list index out of range
I am encountering the said error when trying to send a GET to:
http://astat.bugly.qq.com
The exact line that I use in the code that gives me the request is, maybe I am overlooking something:
r = requests.get("http://"+url, stream=True, timeout=3)
where astat.bugly.qq.com is passed as url
I am reading the url out of a csv-file but I checked that it reads the appropriate url.
I can even recreate it multiple times the python-REPL, I hope you can too.
Proof:

I dont know what could be causing this.
requestsdo you have installed?HTTP/1.0 200 OK\n\nlb monitor pagebut would also expect acontent-type="text/plain". Fix the response from the webserver to be valid HTTP or you will not be able to rely on any http library (it might work today but may break tomorrow).