cURL / Mailing Lists / curl-library / Single Mail


Using curl_easy_setopt in generic way

From: sachin dravid <>
Date: Thu, 19 Sep 2013 10:13:18 +0530


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 *).

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:
Received on 2013-09-19