cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to determine Server support for range request

From: <centrio_at_gmail.com>
Date: Tue, 01 Sep 2009 12:17:24 +0000

Hi,
Curl supports making range requests using options :
CURLOPT_RANGE
CURLOPT_RESUME_FROM
CURLOPT_RESUME_FROM_LARGE.

I am interested in designing a request (designing a request means setting
appropriate options for an easy handle)
such that without using any of above range requests, I will be able to
determine if server supports range request or not.

My observation till now :
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??

Please help.

Thanks and Regards
Shivanand
Received on 2009-09-01