My domain is: DailyDigitalNews.com
Codero Hosting with Plesk.
cURL seemingly enabled.
We’ve encountered an issue whereby cURL POST fails when trying to access the IBM Watson API via a php sdk that relies on cURL:
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data, JSON_UNESCAPED_UNICODE));
curl_setopt($ch, CURLOPT_USERPWD, $username . ‘:’ . $password);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
Testing the exact same code/app on other servers is working fine, and SSL is believed to be the culprit.
our PHP settings (that don’t work)
working PHP settings (that do work)
Is this a known issue, what’s causing it, and what work arounds are there?
Thanks in advance for your help.