cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: resetting some easy options

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 9 Jun 2004 10:01:28 +0200 (CEST)

On Wed, 9 Jun 2004, Greg Kuptsov wrote:

> I'm wandering how to reset some easy options (CURLOPT_RANGE and
> CURLOPT_RESUME_FROM for example). Some web servers don't support 'range'
> or 'resume' commands and vice versa. I hope there is more elegant way
> than calling curl_easy_cleanup/curl_easy_init for that.

Setting CURLOPT_RANGE to NULL disables it.

Setting CURLOPT_RESUME_FROM to 0 prevents a resumed transfer.

I'll add this info to the curl_easy_setopt man page.

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-06-09