curl-library
Re: CURLOPT_PRIVATE
Date: Mon, 25 Jan 2010 15:42:27 +0000 (GMT)
OK sorry seems passing to CURLOPT_PRIVATE as "const char *" is the solution here.
________________________________
From: will griffiths <willgriffiths1_at_yahoo.co.uk>
To: curl-library_at_cool.haxx.se
Sent: Mon, 25 January, 2010 14:18:58
Subject: CURLOPT_PRIVATE
Hello,
I know this is probably very simple, but I'm having trouble with how to pass a char* to CURLOPT_PRIVATE
Currently I have tried:
curl_easy_setopt(h, CURLOPT_PRIVATE, url); //(url is a char *)
[I have tried passing (void *)urlbuf but this is also ineffective.]
I am then trying to receive if with:
char* url;
curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &url);
Can someone provide me with an example if possible please?
Havent had any problems passing CURLOPT_URL or receiving CURLINFO_ EFFECTIVE_URL
Thanks,
Will
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-25