curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. 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 himself.

Re: «--etag-compare» while «--continue-at»

From: Коваленко Анатолий Викторович via curl-users <>
Date: Mon, 30 Mar 2020 04:01:06 +0300

Sorry, I do not know English well. Great sorry.

If I HAVE the FULL downloaded file and I need to PREVENT the downloading of the SAME file, I must
check ETag «If-None-Match», as now at cURL manual. And no error message is need (zero return code).

But if I have ONLY head (or begin) PART of the file and I need to download the tail (or rest, or
end) of the file WITH OPTION «--continue-at», I must check ETag IS EQUAL. ETag for head of the file
must match ETag for the tail of the file. Otherwise head and tail will from DIFFER files. And I
waiting the clear message about ERROR, if not equal, i.e. NON ZERO return code.

It is NOT bug, only my remark. Thank you for beautiful program.

> On Sun, 29 Mar 2020, Коваленко Анатолий Викторович via curl-users wrote:

>> When I resume a previous file transfer, I wish to MATCH previous ETag, NOT
>> «If-None-Match», as now. And I hope to see error message to stop my script
>> if ETag not match. Sorry.

> I'm not sure I understand. Can you please show with examples of how you'd want
> it to work compared to how it works now?

Received on 2020-03-30