cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to log entire POST request via CURLOPT_DEBUGFUNCTION?

From: David Pautler <david_s_pautler_at_yahoo.com>
Date: Thu, 14 Oct 2004 16:12:13 -0700 (PDT)

I'm using curl-7.12.1.
 
I had seen the mention of CURLOPT_DEBUGFUNCTION in the docs, but I haven't been able to find any examples via Google.
 
It seems that curl would call this fn whenever it had new debug info, and that the debug info would be in the 3rd arg (with length indicated by 4th arg). But if I want this to go to a certain file, do I have to do a file_open and file_close on that file within this fn every time it's called?
 
Is there an example that you could link to from here?
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
 
     -dp-
Received on 2004-10-15