note 118536 deleted from function.curl-setopt by cmb
| From: | cmb@php.net | Date: | Sun, 24 Nov 2019 08:36:31 +0000 |
| Subject: | note 118536 deleted from function.curl-setopt by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213188@lists.php.net to get a copy of this message | ||
Note Submitter: phpdocs at neothermic dot com
----
In today's changed TLS landscape, you might eventually encounter servers which only operate on
TLS 1.1 or TLS 1.2, and will actively refuse TLS 1.0 connections.
If you're relying on CURLOPT_SSLVERSION's default setting, you'll never make a
successful connection to the server.
You can solve this by setting CURLOPT_SSLVERSION to either 5 (for CURL_SSLVERSION_TLSv1_1) or 6 (for
CURL_SSLVERSION_TLSv1_2) .