curl-library
Re: Ranged downloads on file:// URLs
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 7 Jan 2008 22:31:21 +0100 (CET)
Date: Mon, 7 Jan 2008 22:31:21 +0100 (CET)
On Mon, 7 Jan 2008, Daniel Egger wrote:
> Indeed, "negative" ranges are broken with both versions. I'll investigate
> that. Oh, and I was wrong in another regard: -9 is *not* supposed to mean
> the first 10 characters but the last 9. Consider the testcase withdrawn as
> completely bogus.
Isn't test case 1020 testing a case that should work as it works like that
with FTP and HTTP?
> Maybe something like
>
> data->state.resume_from += (curl_off_t)file_stat.st_size;
>
> would make more sense.
Sorry for being thick, but are you suggesting the current code is fine or not?
If not, can you please provide an updated patch?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2008-01-07