Reputation: 12445
I am using https://github.com/FriendsOfPHP/Goutte to scrape a page. No probs there.
I am trying to get the Content-Length
from the client response object, but cannot see how I can do this.
Upvotes: 1
Views: 4528
Reputation: 11250
Clicking through the docs... Use $response = $client->getInternalResponse()
to get a Symfony\Component\BrowserKit\Response
which as a $response->getHeader('Content-Length')
available. :-)
Upvotes: 1