cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem setting CURLOPT_WRITEDATA to NULL

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Sat, 24 Jul 2010 17:05:43 -0500

On Sat, Jul 24, 2010, Daniel Stenberg wrote:
> On Sat, 24 Jul 2010, Simon Elliott wrote:

>> I also assumed that setting WRITEDATA to NULL would cause libcurl to
>> revert to its internal file handle, but this isn't in the docs

> Right, there's no such logic in libcurl. Once you've set WRITEDATA to
> something, there's no way to switch it back to default like it was before
> you first changed it. It would be a bit weird to have it work like that
> since it would only make sense if you also had the WRITEFUNCTION
> set back to default and it would make the options get a slightly
> hard-to-follow dependency.

Maybe curl_easy_reset() can do what you want?

 - Jeff
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-07-25