New submission from Raymond Hettinger <raymond.hettin...@gmail.com>:
Add an optional argument to urlretrieve to specify an etag for previously downloaded content: >>> urlretrieve('example.com/data.txt', etag="105800d-4af6-4c29d893d69c0") That optional argument would add the following to the outgoing headers: "If-None-Match: 105800d-4af6-4c29d893d69c0" If the site returns a 304 Not Modified, then the full content download isn't needed. ---------- components: Library (Lib) messages: 163021 nosy: rhettinger priority: normal severity: normal status: open title: Add etag support to urllib.request.urlretrieve() type: enhancement versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15090> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com