curl-library
Re: Help libcurl fetch NTLM authentication messages
Date: Wed, 20 Apr 2011 20:06:00 +0200 (CEST)
On Wed, 20 Apr 2011, Alvaro Queipo de Llano Escribano wrote:
> I am developing an application that needs NTLM on every message. I am
> trying to output to a file the messages sent and received in the
> authentication but I am not able to do it.
I suggest you borrow most of the code from this example and use the
DEBUGFUNCTION feature, as otherwise you won't get a complete capture.
http://curl.haxx.se/libcurl/c/debug.html
> My strategy is to activate de verbose option and then capture the stderr
> stream, but i am not receiving anything. I have tried to use File *out_msgs
> = fopen("C:/out.txt", "w");
Your code didn't actually do anything with that handle, you need to use
CURLOPT_STDERR if you want to redirect that. But do the above approach
instead.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-04-20