note 29813 modified in ref.curl by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 19:47:27 +0000 |
| Subject: | note 29813 modified in ref.curl by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155268@lists.php.net to get a copy of this message | ||
For Win2000: To get the 4.3.1 curl dll to work with https you now need to download the latest win32
curl library from http://curl.haxx.se and snag the ca-bundle.crt
file from the lib directory. Place this somewhere handy on your webserver.
Then in your PHP script, add the following setopt line to the rest of your curl_setopt commands:
<?php curl_setopt($ch, CURLOPT_CAFILE, 'C:\pathto\ca-bundle.crt'); ?>
This worked for me and allowed me to discontinue using the CURLOPT_SSL_VERIFYPEER set to zero hack.
--was--
For Win2000: To get the 4.3.1 curl dll to work with https you now need to download the latest win32
curl library from http://curl.haxx.se and snag the ca-bundle.crt
file from the lib directory. Place this somewhere handy on your webserver.
Then in your PHP script, add the following setopt line to the rest of your curl_setopt commands:
curl_setopt($ch, CURLOPT_CAFILE, 'C:\pathto\ca-bundle.crt')
This worked for me and allowed me to discontinue using the CURLOPT_SSL_VERIFYPEER set to zero hack.
http://php.net/manual/en/ref.curl.php