homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients rhettinger
Date 2012年06月17日.07:02:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1339916557.45.0.663415683134.issue15090@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012年06月17日 07:02:37rhettingersetrecipients: + rhettinger
2012年06月17日 07:02:37rhettingersetmessageid: <1339916557.45.0.663415683134.issue15090@psf.upfronthosting.co.za>
2012年06月17日 07:02:36rhettingerlinkissue15090 messages
2012年06月17日 07:02:36rhettingercreate

AltStyle によって変換されたページ (->オリジナル) /