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.
Re: [RFE] Improve etag handling with --etag-compare-update
- 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: Tue, 29 Apr 2025 10:06:04 -0600
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 command line.
>>
>> --
> Looks good to me, I would only add "with the same filename" after
> "--etag-compare".
> --
I would make that "*possibly* with the same filename". That should
be obvious from the necessary processing sequence, yet I satisfied
myself by experiment that it works.
Perhaps I'm unduly cautious about using the same file for both input
and output for any process.
Date: Tue, 29 Apr 2025 10:06:04 -0600
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 command line.
>>
>> --
> Looks good to me, I would only add "with the same filename" after
> "--etag-compare".
> --
I would make that "*possibly* with the same filename". That should
be obvious from the necessary processing sequence, yet I satisfied
myself by experiment that it works.
Perhaps I'm unduly cautious about using the same file for both input
and output for any process.
-- gil -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2025-04-29