$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();
$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();
转载于:https://www.cnblogs.com/tl542475736/p/11008613.html