note 111525 added to function.curl-setopt
| From: | Naradana | Date: | Thu, 28 Feb 2013 19:55:48 +0000 |
| Subject: | note 111525 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193756@lists.php.net to get a copy of this message | ||
In addition to what we learned from rmckay, you may use this cURL option:
curl_setopt($ch, CURLOPT_CAINFO, $cacertsFilePath);
$cacertsFilePath must be an absolute path to the cacert.pem file. Make sure the PHP process has
sufficient access rights to this path.
Btw. the option CAPATH, as suggested by
http://curl.haxx.se/docs/sslcerts.html
did not work for me (maybe because I'm using Windows?)
----
Server IP: 69.147.83.199
Probable Submitter: 188.99.226.247
----
Manual Page -- http://php.net/manual/en/function.curl-setopt.php
Edit -- https://master.php.net/note/edit/111525
Del: integrated -- https://master.php.net/note/delete/111525/integrated
Del: useless -- https://master.php.net/note/delete/111525/useless
Del: bad code -- https://master.php.net/note/delete/111525/bad+code
Del: spam -- https://master.php.net/note/delete/111525/spam
Del: non-english -- https://master.php.net/note/delete/111525/non-english
Del: in docs -- https://master.php.net/note/delete/111525/in+docs
Del: other reasons-- https://master.php.net/note/delete/111525
Reject -- https://master.php.net/note/reject/111525
Search -- https://master.php.net/manage/user-notes.php