[gdal-dev] Logging network requests/replies?

Even Rouault even.rouault at spatialys.com
Thu Feb 7 01:12:07 PST 2019


On mercredi 6 février 2019 19:54:29 CET Sean Gillies wrote:
> Hi Nyall,
> 
> Even will have the final word on this, but as far as I know, the
> information printed when you turn on the following option
> 
>   https://trac.osgeo.org/gdal/wiki/ConfigOptions#CPL_CURL_VERBOSE
> 
> is not capturable using the error handler from the GDAL API

Yes CPL_CURL_VERBOSE=YES output goes to stderr by default, since this is curl 
which handles this.
But I see in
https://curl.haxx.se/libcurl/c/CURLOPT_DEBUGFUNCTION.html
that we could possibly specify a callback instead of stderr so that it goes 
through GDAL logging mechanism.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list