cURL / Mailing Lists / curl-library / Single Mail


Re: how to retrieve back the pointer set by CURLOPT_WRITEDATA

From: Jeff Pohlmeyer <>
Date: Wed, 16 Dec 2009 04:16:21 -0600

On Wed, Dec 16, 2009 at 4:00 AM, Vincent Chen wrote:

> if I set the pointer via curl_easy_setopt() like this
> curl_easy_setopt(curl_handler_, CURLOPT_WRITEDATA, &res)
> Is there any API to get back my pointer?

There is no way to retrieve this information back from libcurl, but you
shouldn't need to - because you already have it. If you really want to
associate some data with a specific curl handle, check out

 - Jeff
List admin:
Received on 2009-12-16