curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: --continue-at - Last-Modified and output mtime

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 20 Mar 2019 13:59:39 +0100 (CET)

On Sun, 17 Mar 2019, Jack Bates wrote:

>> On Thu, 28 Feb 2019, Jack Bates wrote:
>>> Does `curl --continue-at -` confirm that a 206 Partial Content
>>> Last-Modified timestamp is before the output mtime, before appending to
>>> it?
>>
>> No.
>
> Would you consider applying a patch to that effect?

The 206 check I certainly think would make sense, if it isn't already done,
but checking the Last-Modified time stamp is going to be error-prone and I
think also a little beyond what --continue-at is for.

If you want that date check, couldn't -z be added to the command line for that?

-- 
  / daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-03-20