[New-bugs-announce] [issue15089] Add gzip support to urllib.request.retrieve()

Raymond Hettinger report at bugs.python.org
Sun Jun 17 08:51:13 CEST 2012


New submission from Raymond Hettinger <raymond.hettinger at gmail.com>:

Enable retrieve() to take advantage of data compression in HTTP requests.

* In the request, add the header "Accept-Encoding: gzip".
* In the response, check the headers for "Content-Encoding: gzip".
* Convert the downloaded content using gzip.GzipFile.

----------
components: Library (Lib)
keywords: easy
messages: 163020
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Add gzip support to urllib.request.retrieve()
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15089>
_______________________________________


More information about the New-bugs-announce mailing list