When calling VerifiyEntitlement.php I get the get a timeout error after attempting to do a curl_exec on the entitlements page.
Curl error: Operation timed out after 30000 milliseconds with 0 bytes received
My entitlements.php is a secure page, and I think it has something to do with that. I have downloaded a .pem file and added this line before calling curl_exec:
curl_setopt($c,CURLOPT_CAINFO, "cacert.pem");
That seems to solve one issue, as before I added that line I got this error:
Curl error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
If I enter the URL that curl_exec is executing into a browser it does return valid XML. If I do a curl_exec on the entitlements page without https:, just http:, I get a 403 forbidden error as I would expect.
Has anyone else run into timeout issues when calling VerifyEntitlement.php? Thanks for any suggestions.