cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to determine Server support for range request

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 1 Sep 2009 14:35:28 +0200 (CEST)

On Tue, 1 Sep 2009, centrio_at_gmail.com wrote:

> If server does not support range request and we make use of any of above
> three options, easy_perform retuns saying range_error. I want to determine
> similar thing, but without making any of these three options. IS it
> possible? Are there any Http Headers that I can set in the request which
> will tell me the server behavior??

See http://tools.ietf.org/html/draft-ietf-httpbis-p5-range-07 for all the
details.

The rough summary is this:

    Origin servers that accept byte-range requests MAY send

      Accept-Ranges: bytes

    but are not required to do so.

-- 
  / daniel.haxx.se
Received on 2009-09-01