When libcurl receives data, CURLOPT_WRITEFUNCTION lets you intercept it with a custom callback—but calling libcurl functions from inside could break everything.
Everything curl: libcurl transfers: Callbacks
> Transcript: generated from the open-source book by Daniel Stenberg.
> Source: https://github.com/bagder/everything-curl