Buy commercial curl support. 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 Daniel himself.
[RFE] Improve etag handling with --etag-compare-update
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Aleksei via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 28 Apr 2025 10:15:43 +0300
Hello,
I'm trying to implement a "download only if updated on a remote
resource" functionality with a curl script using etags.
Currently the etag file saved with --etag-save becomes useless after a
single update on a remote resource. This can be worked around on the
client side by saving etag to a temporary file, comparing it with
previously stored etag file etc. But it would be nice to have a
--etag-compare-update <file> option that would work like --etag-compare
plus overwrite the <file> with the new etag if one was returned by
server.
Thanks.
Date: Mon, 28 Apr 2025 10:15:43 +0300
Hello,
I'm trying to implement a "download only if updated on a remote
resource" functionality with a curl script using etags.
Currently the etag file saved with --etag-save becomes useless after a
single update on a remote resource. This can be worked around on the
client side by saving etag to a temporary file, comparing it with
previously stored etag file etc. But it would be nice to have a
--etag-compare-update <file> option that would work like --etag-compare
plus overwrite the <file> with the new etag if one was returned by
server.
Thanks.
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2025-04-28