What steps will reproduce the problem?
1. http = httplib.Http(cache = '.cache', timeout = 180)
2. status, content = http.request
('http://finance.eastmoney.com/091207,1096,1253748.html')
3. exception raised
What is the expected output? What do you see instead?
the webpages, but exception occured!
What version of the product are you using? On what operating system?
httplib2-python3-0.5.0 on Windows XP with Service Pack 2
Please provide any additional information below.
here is the trace back info:
Traceback (most recent call last):
File "<pyshell#96>", line 1, in <module>
status, content = http.request
('http://finance.eastmoney.com/091207,1096,1253748.html')
File "C:\Python31\lib\site-packages\httplib2\__init__.py", line 1088, in
request
(response, content) = self._request(conn, authority, uri, request_uri,
method, body, headers, redirections, cachekey)
File "C:\Python31\lib\site-packages\httplib2\__init__.py", line 873, in
_request
(response, content) = self._conn_request(conn, request_uri, method,
body, headers)
File "C:\Python31\lib\site-packages\httplib2\__init__.py", line 858, in
_conn_request
content = _decompressContent(response, content)
File "C:\Python31\lib\site-packages\httplib2\__init__.py", line 318, in
_decompressContent
content = zlib.decompress(content)
zlib.error: Error -3 while decompressing data: incorrect header check
Original issue reported on code.google.com by jonathan.Admin on 14 Dec 2009 at 7:50
Original issue reported on code.google.com by
jonathan.Admin
on 14 Dec 2009 at 7:50