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

2025-04-29 Thread Paul Gilmartin via curl-users
On 4/29/25 01:46, Aleksei via curl-users wrote:  In many situations you want to use an existing etag in the request to avoid  downloading the same resource again but also save the new etag if it has  indeed changed, by using both etag options --etag-save and --etag-compare,  in the same comm

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

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

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

2025-04-29 Thread Daniel Stenberg via curl-users
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 separate curl invocations. How about add

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

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

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

2025-04-29 Thread Daniel Stenberg via curl-users
On Tue, 29 Apr 2025, Aleksei wrote: If they work together in a single invocation then great, no enhancement needed. Man page describes ETag usage in separate requests: Use the option --etag-save to first save the ETag from a response, and then use this option to compare against the saved ETa

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

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