I use latest version support PHP 5.4, version: 2.0.4
To turn off SSL verify when crawler a https website:
1 2 3 4 5 6 7 8 9 10 |
use Goutte\Client; //app autoload require_once('includes/autoload.php'); $client = new Client(); $client->getClient()->setDefaultOption('config/curl/' . CURLOPT_SSL_VERIFYPEER, false); $crawler = $client->request('GET', 'https://google.com'); |
More information: https://packagist.org/packages/fabpot/goutte#v2.0.4