Recently encountered Curl Error:recv failure:connection reset by peer error hint, now the solution to share with you, hope to help you.
We often use curl to access the Web site, the Web site is mainly divided into HTTP and https two kinds of protocols, it is well known that the HTTPS type of Web sites are through the SSL protocol +http protocol, is currently the most secure site protocol, access to such sites, will take the SSL protocol, Verifies the visitor's certificate and detects whether it is secure.
This is also the process of accessing such web sites through curl, but you need to add the appropriate parameters in curl to bypass the authentication of the SSL certificate for normal access , as the general reason for this error is that this parameter is not added (see below).
curl_setopt ($c, Curlopt_ssl_verifypeer, false); curl_setopt ($c, Curlopt_ssl_verifyhost, false);
http://www.bkjia.com/PHPjc/824787.html www.bkjia.com true http://www.bkjia.com/PHPjc/824787.html techarticle recently encountered Curl ERROR:RECV failure:connection reset by peer error hint, now the solution to share with you, hope to help you. We often use CU ...