Curl request is failing on the SSL?

后端 未结 7 1949
走了就别回头了
走了就别回头了 2020-12-14 18:09

I have this code

    if(ereg(\"^(https)\",$url))
        curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false);
    // execute, and log the result to curl_put.log
         


        
7条回答
  •  渐次进展
    2020-12-14 19:04

    I had the same error printed by the function curl_error but this is not necessarily related to SSL. It is better to print the precise error number with the function curl_errno and you can diagnose better from there. In my case it returned me a 52 error code and I could debug from there, in fact the other server was not sending any data.

提交回复
热议问题