Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Naming ETag files?
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Paul Gilmartin via curl-users <curl-users_at_lists.haxx.se>
Date: Sun, 15 Jan 2023 11:04:20 -0700
On 1/15/23 05:19:32, Timothe Litt via curl-users wrote:
> ...
> If the filesystem supports extended attributes, an even better place would be to store the etag there, since in that case, moving, copying, renaming would automagically ensure that the etag is carried along. Linux xattr, Mac forks, NTFS 'streams', etc..
Interesting. The Mac and Linux xattr commands have a useful compatible
overlap. So I could download with:
--etag-save tempfile.ETag
tnen:
xattr -w user.aETag "$( cat tempfile.ETag )" downloaded-resource
... and reverse the process for --etag-compare for the next conditional
download.
> Timothe Litt
> ACM Distinguished Engineer
> ------------------------
Date: Sun, 15 Jan 2023 11:04:20 -0700
On 1/15/23 05:19:32, Timothe Litt via curl-users wrote:
> ...
> If the filesystem supports extended attributes, an even better place would be to store the etag there, since in that case, moving, copying, renaming would automagically ensure that the etag is carried along. Linux xattr, Mac forks, NTFS 'streams', etc..
Interesting. The Mac and Linux xattr commands have a useful compatible
overlap. So I could download with:
--etag-save tempfile.ETag
tnen:
xattr -w user.aETag "$( cat tempfile.ETag )" downloaded-resource
... and reverse the process for --etag-compare for the next conditional
download.
> Timothe Litt
> ACM Distinguished Engineer
> ------------------------
-- gil -- Unsubscribe: https://lists.haxx.se/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2023-01-15