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
On 2025-04-29, Daniel Stenberg wrote:
On Tue, 29 Apr 2025, Aleksei wrote:
curl --etag-compare file0.etag --etag-save file0.etag $URL
... which only downloads the URL again if it is different than the
last download.
If they work together in a single invocation then great, no enhancement
needed
On 2025-04-28, Daniel Stenberg wrote:
On Mon, 28 Apr 2025, Aleksei via curl-users wrote:
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
On 2025-04-29, Daniel Stenberg wrote:
curl --etag-compare file0.etag --etag-save file0.etag $URL
/ daniel.haxx.se || https://rock-solid.curl.dev
If they work together in a single invocation then great, no enhancement
needed. Man page describes ETag usage in separate requests:
Use the option
On 2025-04-29, Daniel Stenberg wrote:
On Tue, 29 Apr 2025, Aleksei wrote:
Thanks for explanations Daniel, all clear now. Perhaps these things
should be mentioned in the man page, the current --etag-save and
--etag-compare sections gave me a clear impression these options are
to be used in separ