Hello guys. I am getting some cURL data using Guzzle Framework. Code
After X requests I am getting 403 forbidden error code, mostly more than 150. Any solutions? |
if ($response->isError()) {
if($status == 403) {
sleep(5);
do {
$request = $client->get($url);
$response = $request->send();
$status = $response->getStatusCode();
} while ($status != 403);
}
} else {
return $response->getBody(/* $asString = */ true);
}
--
You received this message because you are subscribed to the Google Groups "Guzzle - PHP HTTP client and REST client framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guzzle+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.