Message163021
| 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:37 | rhettinger | set | recipients:
+ rhettinger |
| 2012年06月17日 07:02:37 | rhettinger | set | messageid: <1339916557.45.0.663415683134.issue15090@psf.upfronthosting.co.za> |
| 2012年06月17日 07:02:36 | rhettinger | link | issue15090 messages |
| 2012年06月17日 07:02:36 | rhettinger | create |
|