When cURL fails and returns null, the library just passes that on with no clean way to diagnose the issue. I found myself using a closure so I can access the private cURL handle and use curl_error() to retrieve the actual error. If the library can provide a method to access the error or expose the cURL handle, that would be lovely.
When cURL fails and returns null, the library just passes that on with no clean way to diagnose the issue. I found myself using a closure so I can access the private cURL handle and use
curl_error()to retrieve the actual error. If the library can provide a method to access the error or expose the cURL handle, that would be lovely.