Working With HTTPS in CURL in PHP
The following commands allow CURL to get the text of sites working via the HTTPS protocol:
<?php
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
?>
Access the following site via CURL, which is running on HTTPS:
<?php
$url = 'https://code.mu';
?>