cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Ranged downloads on file:// URLs

From: Richard Atterer <richard_at_2008.atterer.net>
Date: Tue, 8 Jan 2008 21:22:12 +0100

On Tue, Jan 08, 2008 at 08:39:13PM +0100, Daniel Egger wrote:
>> The "-[number]" case isn't that special imho. [...] And IIRC, that's how
>> HTTP ranges work and is why we support this style in the first place...
>
> Nope, to cite rfc2616:
[...]

No, Daniel S. is right - but the details are buried a bit in the RFC...

> 14.16 Content-Range
>
> The Content-Range entity-header is sent with a partial entity-body to

NB: That's a _response_ header, it doesn't say what's allowed in requests!

The allowed syntax of the Range request header is in section 14.35. One
alternative is the "suffix-byte-range-spec" format, for which "-500" (last
500 bytes) is an example.

Cheers,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  GnuPG key: 888354F7
  | \/¯|  http://atterer.net  |  08A9 7B7D 3D13 3EF2 3D25  D157 79E6 F6DC 8883 54F7
  ¯ '` ¯
Received on 2008-01-08