Goutte 获取http response

$client = new Goutte\Client();
$crawler = $client->request('GET', 'http://symfony.com');

  获取http 响应code 和 http request 信息

$crawler = $this->client->request("GET", $cateUrl);
$code = $this->client->getInternalResponse()->getStatus();

  

posted @ 2019-06-12 11:34  闲云-野鹤  阅读(190)  评论(0编辑  收藏  举报