note 75711 deleted from function.curl-setopt by crell
| From: | crell@php.net | Date: | Thu, 31 Mar 2022 20:55:16 +0000 |
| Subject: | note 75711 deleted from function.curl-setopt by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217974@lists.php.net to get a copy of this message | ||
Note Submitter: mcbreen at gmail dot com
----
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); ?>