I want to catch the verbose data which is printed to STDERR in Libcurl (C++). However, I can only point to a file when I want to change CURLOPT_STDERR
. Of course, I could point to a file, dump the data, read the file and remove the file, but that seems a bad routine?
Besides that, I'm aware of the CURLOPT_DEBUGFUNCTION
which gives me back bad formatted strings with weird newlines at the end which I can't replace for my logging.
So, how can I catch the clean data (as shown by STDERR
) from the CURLOPT_VERBOSE
function?