I am using a webservice to get some results in XMl form... here is the part of the code
public function getXML()
{
$url=$this->constructURL();
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$xml = curl_exec($ch);
if ($error = curl_error($ch)) {
echo "Error: $error<br />
";
}
curl_close($ch);
return $xml;
}
$resultXML = $api->getXML();
echo $resultXML;
when i echo that '$asd' it does nothing but a balnk page...
but when i use the value of $url directly in the browser it produce an XML result...
can any one suggest me where i am going wrong???
ADDED.........
when i included the error reporting after curl_exec
it gives an error
Error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
also Iam usig https://blahblh for request