curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: print curl_easy_setopt in debug function

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 5 Jun 2018 08:38:31 +0200

On Mon, Jun 04, 2018 at 11:50:26PM -0400, Tejas wrote:
> The --libcurl is interesting and i didn't know this before, but that is not what I meant, unless it has a CURLSETOPT_LIBCURL or something similar (which i couldn't find)
>
> What I actually wanted was to print out setopt via CURLOPT_DEBUGFUNCTION , under CURLINFO_TEXT case

That doesn't exist, but you can implement it in exactly the same way as
--libcurl. Just capture calls to curl_easy_setopt in your app (using one of a
number of mechanisms) and print out the values yourself.

>>> Dan
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-06-05