Does anyone know the answer to this question? I read PHP cURL documentation but I could not find an answer. I have a bash script and I want to convert it to PHP. I just can't figure out what is the equivalent of
curl --tlsv1
Any suggestion is much appreciated.
You can use the CURLOPT_SSLVERSION
option, with the CURL_SSLVERSION_TLSv1
value.
See http://php.net/manual/en/function.curl-setopt.php for more information.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.