So, lets say you're creating a request whatever domain you'd like.
You probably doing something like $response = $service->request('endpoint', 'GET').
But the $response variable will ONLY contain the body of the response.
We're having a senario where the provider returns a 401, can clearly see it in CurlClient.php@126, but since retrieveResponse() only returning curl_exec($ch) it's pretty hard to solve.
So, lets say you're creating a request whatever domain you'd like. You probably doing something like
$response = $service->request('endpoint', 'GET')
.But the
$response
variable will ONLY contain the body of the response. We're having a senario where the provider returns a 401, can clearly see it in CurlClient.php@126, but sinceretrieveResponse()
only returningcurl_exec($ch)
it's pretty hard to solve.Whats the thoughts here?