cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Debugging problem

From: Alan Wolfe <alan.wolfe_at_gmail.com>
Date: Thu, 6 Dec 2007 13:14:55 -0800

well there's always sprintf which prints to a char * string! (:

On 12/6/07, Michael Hecker <Hecker.Michael_at_gmx.de> wrote:
> Hey,
> sorry! I forgot to change the topic.
>
> To the problem:
> I found several examples for CURLOPT_DEBUGFUNCTION but all wrote the
> data directly on the screen via fprintf.
> I want to write the data to a string or CString to parse the data. How
> can I do that?
>
> Thanks,
> Michael
>
>
>
> Daniel Stenberg schrieb:
> > On Wed, 5 Dec 2007, Michael Hecker wrote:
> >
> > (Please don't hijack threads by replying to something else and change
> > subject, start a new thread with a new mail.)
> >
> >> I want to write all the data curl normally prints into the console in
> >> a variable to parse it later on.
> >> I need all the data like (Connecting ... leaving Connection intact.
> >> Reusing Connection and so on)
> >>
> >> How can I do that?
> >
> > CURLOPT_DEBUGFUNCTION is your friend.
> >
>
>
Received on 2007-12-06