I have access API with CURL working PHP 5.5.12 fine.but if reduce php version below 5.5 so i got error ( SSL_ERROR_PROTOCOL_VERSION_ALERT: Peer reports incompatible or unsupported protocol version. ) so can you please suggest me. remove this error. and access API below php version 5.5.
We have resolved issue. with out update php version change below curl code
curl_setopt($ch, CURLOPT_SSLVERSION, 3); // 1, 2 or 3
We have already used. please add on curl both line.
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
– Vinod Kumar Pal
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.