cURL / Mailing Lists / curl-library / Single Mail


Re: resetting some easy options

From: Daniel Stenberg <>
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 -- --
      Dedicated custom curl help for hire:
Received on 2004-06-09