cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET