Re: [RFE] Improve etag handling with --etag-compare-update

2025-04-28 Thread Daniel Stenberg via curl-users
On Tue, 29 Apr 2025, Aleksei wrote: I'm asking for "and update the etag file" part to be done by curl. Scenario: 1) curl downloads a webpage, saving etag file in file0.etag Something like this: curl --etag-save file0.etag $URL 2) website updates a webpage (update 1) 3) curl uses "--etag-co

Re: [RFE] Improve etag handling with --etag-compare-update

2025-04-28 Thread Aleksei via curl-users
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 a single update

Re: [RFE] Improve etag handling with --etag-compare-update

2025-04-28 Thread Paul Gilmartin via curl-users
On 4/28/25 02:37, Daniel Stenberg via curl-users 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 afte

Re: [RFE] Improve etag handling with --etag-compare-update

2025-04-28 Thread Daniel Stenberg via curl-users
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 a single update on a remote resource. I don't unders

[RFE] Improve etag handling with --etag-compare-update

2025-04-28 Thread Aleksei via curl-users
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