cURL / Mailing Lists / curl-users / Single Mail

curl-users

Using curl_easy_setopt in generic way

From: sachin dravid <sachin.dravid1_at_gmail.com>
Date: Wed, 18 Sep 2013 18:11:51 +0530

Hello,

Use case
=========
I am working on a library, where I am getting map of (string) vs (void
*). Here string is name of CURL option and value comes as (void *).

Issue
=========
curl_easy_setopt takes CURLoption parameter which is actually an enum
and respectively value should be passed with proper type.
How can I use curl_easy_setopt function generically with string and void*?

-- 
Thanks and Regards,
Sachin Dravid
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-09-18