Replies: 1 comment
-
Like this: $client = Browsershot::url($url);
$response = collect($client->redirectHistory())->last();
$body = $client->bodyHtml();
dd($response['status']); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After obtaining the content, I want to confirm whether the request is normal, so I need to judge the response status code
Beta Was this translation helpful? Give feedback.
All reactions