curl-library
Re: how to retrieve back the pointer set by CURLOPT_WRITEDATA
From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Wed, 16 Dec 2009 04:16:21 -0600
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
CURLOPT_PRIVATE and CURLINFO_PRIVATE.
- Jeff
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-16