Closed amurrell closed 2 years ago
Hello @amurrell,
How about exposing the response code directly? This would allow to check easily if the navigation was successful...
Cheers, Peter
Access to the client is really desired - I also need to be able to set the user agent:
In Goutte, you can:
$client->setServerParameter('HTTP_USER_AGENT', 'user agent');
Hey @amurrell,
I've added a method to expose the client. You should be able to call it now. Can you check if this works for you?
Cheers, Peter
@spekulatius This looks perfect.. Will you merge and release it?
I wanted to know the response code of the url but could not get access.
Looking at Goutte under the hood, I think I could get it if I could do something like:
So, I would like a function to get access to the $client, like: