After spending over 12 hours on why cURL is failing, I have narrowed it down to a scenario that works and that which fails.
Works:
if (isset($_POST['StudentProfile'])) {
$this->testCurl(__FUNCTION__);
$model->attributes = $_POST['StudentProfile'];
Fails:
if (isset($_POST['StudentProfile'])) {
$model->attributes = $_POST['StudentProfile'];
$this->testCurl(__FUNCTION__);
To make things more challenging, the problem only occurs on Hostgator server. It works fine on my Ubuntu 12.04 and GoDaddy.
What could possible be there in
$model->attributes = $_POST[‘StudentProfile’];
that makes curl fail.
Curl fails with security error.
Curl code:77 error: Problem with the SSL CA cert (path? access rights?)