We\'re trying to debug some cURL errors on the server, and I would like to see the STDERR log. Currently, all we can see for our error is \"error code: 7\" and that we can\'
You should put
$output = fread($curl_log, 2048); echo $output; // This returns nothing! fclose($curl_log);
after $response = curl_exec($curl); otherwise, file is closed during curl is executing.
$response = curl_exec($curl);