kennethreitz/requests — Issue #339: ConnectionError in requests, not urllib2
Author: samuelclay
Created: 2012-01-06 05:18:41+00:00
State: open

>>> url = 'http://www.rpgwatch.com?rwsiteid=1'
>>> len(urllib2.urlopen(url).read())
112749
>>> len(requests.get(url).content)
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.macosx-10.7-intel/egg/requests/api.py", line 50, in get
File "build/bdist.macosx-10.7-intel/egg/requests/api.py", line 38, in request
File "build/bdist.macosx-10.7-intel/egg/requests/sessions.py", line 200, in request
File "build/bdist.macosx-10.7-intel/egg/requests/models.py", line 498, in send
requests.exceptions.ConnectionError: Max retries exceeded for url: /?rwsiteid=1