Am using CURL to get the XML response in PHP. The problem is when I run the PHP cron job file, It didn't get the response.
$ch = curl_init($URL);
curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_PORT, 80);
$responseAll = curl_exec($ch);
When I run the CURL in command prompt I get the response
CURL -Li <URL>
But the problem is when I run this as a PHP file, the curl throws the error as
35 SSL Connect error
Note: Also the same works fine in PHP4. The problem occurs only in PHP5