https://curl.se/libcurl/c/CURLOPT_ERRORBUFFER.html has a complete example how to print more detailed errors when sending via curl is not successful. We should use that.