-
-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
How do I check if the scraped page is an error page?
It would be helpful to have the http status for that - something like
$web->go('https://httpstat.us/404');
echo $web->status; // prints 404
Just before posting, I found the solution myself:
$web->client->getResponse()->getStatusCode()
It would be great to have this added to the documentation.
Or maybe add $web->status as shortcut?
patriksh
Metadata
Metadata
Assignees
Labels
No labels