Also Windows paths are backslash?
May 10, 2015
3
Level 1
Use a curl package
Hello,
I'm trying to use this package : http://packalyst.com/packages/package/jyggen/curl
$request = new \Jyggen\Curl\Request('https://laracasts.com');
$request->execute();
if ($request->isSuccessful()) {
dd($request->getRawResponse());
}
But I get this error when I try to make a request
CurlErrorException in Request.php line 193:
SSL certificate problem: self signed certificate in certificate chain
However, in my PHP configuration file, I indicated the path to my cacert.pem file. Here is its content : http://curl.haxx.se/ca/cacert.pem
My PHP configuration file :
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo = "c:/wamp/bin/php/cacert.pem"
Could you please help me? Thank you in advance.
Regards
Please or to participate in this conversation.