If you want to fetch the error message, make sure you fetch it before you close the current cURL session or the error message will be reset to an empty string.
If you want to fetch the error message, make sure you fetch it before you close the current cURL session or the error message will be reset to an empty string.