Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
curl_global_trace(3) | libcurl | curl_global_trace(3) |
NAME
curl_global_trace - Global libcurl logging configurationDESCRIPTION
This function configures the logging behavior, allowing to make some parts of curl more verbose or silent than others.TRACE COMPONENTS
- tcp
- Tracing of TCP socket handling: connect, reads, writes.
- ssl
- Tracing of SSL/TLS operations, whichever SSL backend is used in your build.
- http/2
- Details about HTTP/2 handling: frames, events, I/O, etc.
- http/3
- Details about HTTP/3 handling: connect, frames, events, I/O etc.
- http-proxy
-
Involved when transfers are tunneled through a HTTP proxy. "h1-proxy" or "h2-proxy" are also involved, depending on the HTTP version negotiated with the proxy.
EXAMPLE
int main(void)
{
/* log details of HTTP/2 and SSL handling */
curl_global_trace("http/2,ssl");
/* log all details, except SSL handling */
curl_global_trace("all,-ssl");
}
* [HTTP/2] [h2sid=1] cf_send(len=96) submit https://example.com/
...
* [HTTP/2] [h2sid=1] FRAME[HEADERS]
* [HTTP/2] [h2sid=1] 249 header bytes
...
AVAILABILITY
Added in 8.3RETURN VALUE
If this function returns non-zero, something went wrong and the configuration may not have any effects or may only been applied partially.SEE ALSO
curl_global_init(3), libcurl(3)December 4, 2023 | libcurl 8.5.0 |