cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to log entire POST request via CURLOPT_DEBUGFUNCTION?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 15 Oct 2004 09:18:28 +0200 (CEST)

On Thu, 14 Oct 2004, David Pautler wrote:

> I had seen the mention of CURLOPT_DEBUGFUNCTION in the docs, but I haven't
> been able to find any examples via Google.

Se example here: http://curl.haxx.se/lxr/source/docs/examples/debug.c

> 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?

... or you keep the file open all the time and just append data when new
comes.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-10-15