我正试图访问一个goutte和guzzle的网站,guzzle它工作正常但是当我同时使用它们不起作用时,任何人都知道为什么?
$cookieJar = CookieJar::fromArray([
'idalmacen' => 79,
], 'www.publicaciones.exito.com');
$client = new Client();
$guzzleclient = new \GuzzleHttp\Client([
'timeout' => 900,
'verify' => false,
'cookies' => $cookieJar,
]);
$client->setClient($guzzleclient);
$crawler = $client->request('GET', 'http://www.publicaciones.exito.com/index.php/index');
$crawler = $client->getResponse()->getContent();
print_r($crawler);