Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
curl_global_trace(3) | Library Functions Manual | curl_global_trace(3) |
NAME
curl_global_trace - log configurationDESCRIPTION
This function configures the logging behavior to make some parts of curl more verbose or silent than others.TRACE COMPONENTS
- tcp
- Tracing of TCP socket handling: connect, sends, receives.
- ssl
- Tracing of SSL/TLS operations, whichever SSL backend is used in your build.
- ftp
- Tracing of FTP operations when this protocol is enabled 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 an HTTP proxy. "h1-proxy" or "h2-proxy" are also involved, depending on the HTTP version negotiated with the proxy.
- doh
- Tracing of DNS-over-HTTP operations to resolve hostnames.
- read
- Traces reading of upload data from the application in order to send it to the server.
- write
- Traces writing of download data, received from the server, to the application.
PROTOCOLS
This functionality affects all supported protocolsEXAMPLE
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 curl 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)2024-11-23 | libcurl |