Developers Program

SSL and CURL configuration

Published: February 17 2005, 5:47:00 PMยทUpdated: July 20 2022, 12:29:16 PM

Products

Question

I am getting a Null response when making SOAP calls using CURL

Answer

The solution is to set the following option:

curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false);

This applies to PHP 4.x and 5.x.

cURL PHP documentation is available here : http://us3.php.net/manual/en/ref.curl.php

How well did this answer your question?