Contrary to the documentation, CURLOPT_STDERR should be set to a handle to the file you want to write to, not the file's location.
Contrary to the documentation, CURLOPT_STDERR should be set to a handle to the file you want to write to, not the file's location.