Welcome Guest, Not a member yet? Register   Sign In
Why cannot CURLRequest::sendRequest() include remote status in Exception thrown
#1

Before I go ahead and write my own implementation of a cURL request I'd like to understand why the exception thrown doesn't contain details about the http status (fromĀ curl_getinfo($ch, CURLINFO_HTTP_CODE)) but only the cURL error message (in this case 22 indicating an http status >= 400)? I'd like to see if it's 400, 401 or 404 causing the request to fail.
Reply


Messages In This Thread
Why cannot CURLRequest::sendRequest() include remote status in Exception thrown - by tgix - 06-30-2022, 07:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB