I\'m using \"FriendsOfPHP/Goutte\" Package https://github.com/FriendsOfPHP/Goutte For web crawling... When I use \"http://\" links then it\'s ran correctly but when I use \"
Try disabling CURLOPT_SSL_VERIFYPEER
to stop cURL from verifying the peer's certificate:
$client->getClient()
->setDefaultOption('config/curl/' . CURLOPT_SSL_VERIFYPEER, false);
I think you have a certificate problem.
It seems Goutte
depends on Guzzle 4
. And Guzzle can't find the proper certificate to verify a secure https
request, see more about it here.
Try to download this file: Bundle of CA Root Certificates
. (Open
and Save As
).
Then locate your php.ini file and add,or edit if it already exists, this line
curl.cainfo = "[pathtothisfile]\cacert.pem"