PHPoAuthLib icon indicating copy to clipboard operation
PHPoAuthLib copied to clipboard

Reciving the HTTP status code of the response?

Open RobinBertilsson opened this issue 6 years ago • 1 comments

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.

Whats the thoughts here?

RobinBertilsson avatar Apr 16 '18 15:04 RobinBertilsson

I found this PR https://github.com/Lusitanian/PHPoAuthLib/pull/236 , but it wasn't accepted.

germanow avatar Jun 29 '21 12:06 germanow