Use CURLOPT_ERRORBUFFER to get more useful error messages