note 75711 modified in function.curl-setopt by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 17:27:14 +0000 |
| Subject: | note 75711 modified in function.curl-setopt by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154983@lists.php.net to get a copy of this message | ||
If you are getting the following error:
SSL: certificate subject name 'example.com' does not match target host name
'example.net'
Then you can set the following option to get around it:
<?php curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); ?>
--was--
If you are getting the following error:
SSL: certificate subject name 'domain-or-ip-1.com' does not match target host name
'domain-or-ip-2.com'
Then you can set the following option to get around it:
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
http://php.net/manual/en/function.curl-setopt.php