Re: verbose Log from libcurl to a file

2022-12-30 Thread Dan Fandrich via curl-library
On Fri, Dec 30, 2022 at 05:24:46PM +, Samantray Bhuyan, Madhusudan (GE 
Digital) via curl-library wrote:
> How to I redirect libcurl verbose output to a log file . I found https://
> stackoverflow.com/questions/38720602/
> getting-verbose-information-from-libcurl-to-a-file but the log file is empty
> for me.
> 
> Using curl 7.79.1 on windows

Are you compiling libcurl yourself or are you using a pre-built DLL? As I
recall, Windows has a problem when using stdio when two different CRTs are
involved, one for libcurl and one for your application. The two versions may
have incompatible structures, so creating a FILE* in your application with one
CRT and passing it to libcurl that uses it with another might not work.

If you don't want to compile your own libcurl, then you'll probably have to
install your own CURLOPT_DEBUGFUNCTION so you have complete control over which
functions are used to write to the log file.

Dan
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html


verbose Log from libcurl to a file

2022-12-30 Thread Samantray Bhuyan, Madhusudan (GE Digital) via curl-library
Hello Users

How to I redirect libcurl verbose output to a log file . I found 
https://stackoverflow.com/questions/38720602/getting-verbose-information-from-libcurl-to-a-file
 but the log file is empty for me.

Using curl 7.79.1 on windows

Regards
Madhusudan S

-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html