cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Why the range begin from 0 instead of 1?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 11 May 2015 09:05:23 +0200 (CEST)

On Mon, 11 May 2015, Hongyi Zhao wrote:

> 0-499 specifies the first 500 bytes
>
> I just wondered why not use 1, instead of 0, as the beginning counter of the
> bytes number of a file?

Primarly, because that's how HTTP's range: header works.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-05-11