Jump to content

Curl and SSL


grazzman

Recommended Posts

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

[code]
<?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; ?>

[/code]
Link to comment
https://forums.phpfreaks.com/topic/15541-curl-and-ssl/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.