How to view and debug errors in cURL session after closing with curl_close?
When using PHP's cURL extension for network requests, developers often call curl_close() to close a cURL session. But many people encounter this problem when debugging:. Because once curl_close() is called, the resources related to the session will be released, including error messages.
curl_close