New submission from Raymond Hettinger <raymond.hettin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15089>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to