Install php Curl w/ SSL On Xampp For Windows XP / Vista

The default xampp install for windows comes with curl for php but will not allow me to use the https protocol in my curl requests. I have searched around for a solution but nothing has worked.
phirschybarAsked:
Who is Participating?
 
Ionut A. TudorConnect With a Mentor PHP ProgrammerCommented:
you need to enable php_openssl.dll in extension dir
and copy ssleay32.dll into windows/system32 folder
also be sure to use the correct curl options when using https, these two lines should be added at the curl handler options in the below case $ch
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
Hope this solved the problem, Cheers
0
 
phirschybarAuthor Commented:
yep, it worked.
0
All Courses

From novice to tech pro — start learning today.