Hi,
Pls help me on this when I am trying to print the output of the http://www.google.com I get the appropriate output. So if anybody can help how to do this here for secure layer(HTTPS).
<?php
$curl_handle=curl_init();
//curl_setopt($curl_handle,CURLOPT_URL,'https://secure.charge1.com/api/transact ... ount=10.00');
curl_setopt($curl_handle,CURLOPT_URL,'http://www.google.com');
//curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
{
print "Sorry, example.com are a bunch of poopy-heads.<p>";
}
else
{
print $buffer;
}
?>
Thanks in advance,
Sourabh
PLS HELP!!! CURL HTTPS(secure layer issue)
Moderator: General Moderators