【发布时间】:2016-01-13 20:01:25
【问题描述】:
我正在使用https://github.com/FriendsOfPHP/Goutte 来抓取页面。没有问题。
我正在尝试从客户端响应对象中获取 Content-Length,但看不到我该怎么做。
【问题讨论】:
标签: php guzzle content-length goutte
我正在使用https://github.com/FriendsOfPHP/Goutte 来抓取页面。没有问题。
我正在尝试从客户端响应对象中获取 Content-Length,但看不到我该怎么做。
【问题讨论】:
标签: php guzzle content-length goutte
单击文档...使用$response = $client->getInternalResponse() 获取Symfony\Component\BrowserKit\Response,作为$response->getHeader('Content-Length') 可用。 :-)
【讨论】: