Need help in CURL
Posted: Fri Aug 18, 2006 1:11 am
Hello,
I am working on CURL Library. I have HTTPS installed on my domain. But i got the folowing error when i run my CURL CODE
Plz suggest that how to fix this error.
Here is my complete code
i check that i got all values in varaibles passed as a parameter.
Plz help
Regards,
Eshban
I am working on CURL Library. I have HTTPS installed on my domain. But i got the folowing error when i run my CURL CODE
Code: Select all
CURL ERROR: error:14094418:SSL routines:func(148):reason(1048)Here is my complete code
i check that i got all values in varaibles passed as a parameter.
Code: Select all
function SendSoapToPayPal($url, $sslcertpath, $soapData) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSLCERT, $sslcertpath);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, $soapData);
$temp = curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$returnedData = curl_exec ($ch);
$error = curl_error( $ch );
if( !empty( $error )) {
$html = "CURL ERROR: " .$error."<br>";
echo $html;
curl_close ($ch);
return $returnedData;
}
curl_close ($ch);
return $returnedData;
}Regards,
Eshban