note 40437 added to ref.curl
| From: | simon at rn2 dot php dot net | Date: | Wed, 03 Mar 2004 21:53:41 +0000 |
| Subject: | note 40437 added to ref.curl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66208@lists.php.net to get a copy of this message | ||
It took me quite some to to figure out how to get Curl (with SSL), OpenSSL and PHP to play nicely
together.
After reinstalling MS-VC7 and compiling OpenSSL to finally realise this was'nt nesscary.
If your like me and like *Nix systems more than Windows then you'll most probly have similar
problems.
I came across this, on a simple google with the right keywords.
http://www.tonyspencer.com/journal/00000037.htm
I read thru that and found my mistake.
Its just a small list of notes, I found them to be the best I've found on the subject and the
most simplist.
Dont forget to add a simple line like this into your scripts to get them working on Win32.
<?php
if($WINDIR) curl_setopt($curl, CURLOPT_CAINFO, "c:\\windows\\ca-bundle.crt");
?>
Last note: ca-bundle.crt file is located in the Curl download. I stored mine in the windows
directory and apache/php can access it fine.
All the best and I hope this helps.
Simon Lightfoot
vHost Direct Limited
----
Manual Page -- http://www.php.net/manual/en/ref.curl.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40437
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40437&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40437&report=yes
Search -- http://master.php.net/manage/user-notes.php