kennethreitz/requests — Issue #336: zlib error in Requests and not urllib2
Author: samuelclay
Created: 2012-01-06 04:33:22+00:00
State: open

>>> url = 'http://www.federaltimes.com/rss/'
>>> len(urllib2.urlopen(url).read())
70636
>>> requests.get(url)

>>> requests.get(url).content
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.macosx-10.7-intel/egg/requests/models.py", line 693, in content
File "build/bdist.macosx-10.7-intel/egg/requests/packages/urllib3/response.py", line 142, in read
File "build/bdist.macosx-10.7-intel/egg/requests/packages/urllib3/response.py", line 33, in decode_deflate
zlib.error: Error -3 while decompressing data: invalid block type
>>>