Jump to content


Photo

Curl and SSL


  • Please log in to reply
1 reply to this topic

#1 grazzman

grazzman
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 24 July 2006 - 09:41 PM

Anyone know how to make Curl ignore a Certificate Miss match.... Example, my test site, grazzman.com has a securesites.net ssl certificate on it, so it will come up as a miss match. Any ideas would help.  Thanks

<?php
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,"http://wizards.orem.verio.net/database/webface/index.cgi");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch ,CURLOPT_SSL_VERIFYPEER, 1);
$result=curl_exec ($ch);
curl_close ($ch);
?>
<?php echo $result; ?>



#2 grazzman

grazzman
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 24 July 2006 - 10:00 PM

nevermind... its

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1);




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users