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
#2

(This post was last modified: 06-30-2022, 07:52 AM by iRedds.)

composer require guzzlehttp/guzzle

what is the point of writing your own if there is a ready-made popular solution?
Reply
#3

(06-30-2022, 07:51 AM)iRedds Wrote: composer require guzzlehttp/guzzle

what is the point of writing your own if there is a ready-made popular solution?

Third-party-library-composer-weariness I guess ;-)
Reply




Theme © iAndrew 2016 - Forum software by © MyBB