Got it!I had to add the following code to get the error description:if(curl_errno($ch)){ echo 'Request Error:' . curl_error($ch); echo ("<br>");}Then the error was:cURL error: SSL certificate problem, verify that the CA cert is OK. Details: error routines verify failedSo I just addedcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);Working now. Thanks.