cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: removing a set option (curl_easy_setopt) once it has been set

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Mon, 12 Mar 2012 20:37:34 -0500

On Mon, Mar 12, 2012 at 9:25 AM, JonathonS wrote:

> Is there a way to remove an option once it has been set with
> curl_easy_setopt?
> ...
> If  my connection fails for some reason, I'd like to change the URL
> and inform libcurl to no longer use that CA file (CURLOPT_CAINFO).

You might also take a look at curl_easy_reset() :

  http://curl.haxx.se/libcurl/c/curl_easy_reset.html

 - Jeff

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-03-13