PHP cURL over SSL · Friday July 17, 2009 by Rudolf Vavruch
If you’re getting stuck trying to use cURL over https in PHP, try setting both the verify peer and verify host options to false:
$url = 'https://myverysecret.domain/secrets/';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_exec($curl);
Commenting is closed for this article.
PAM and the Bad password blues Inside every DVD is a small movie trying to get out. Part 1: A quick guide to K9Copy