Libcurl defaults to stdout when handling a server's response. We can override it with CURLOPT_WRITEFUNCTION and CURLOPT_WRITEDATA. From the manual I got that I could set the CURLOPT_WRITEFUNCTION to NULL and ...
CURLOPT_WRITEFUNCTION
CURLOPT_WRITEDATA
NULL