cURL: Operation timed out after 0 milliseconds

后端 未结 1 1409
北荒
北荒 2021-01-05 03:23

cURL gives me the error:

Operation timed out after 0 milliseconds with 0 out of 0 bytes received

In particular, the \"0 milliseconds\" par

相关标签:
1条回答
  • 2021-01-05 03:59

    I had the same issue, when tried to connect via https. Problem was with ssl version. This worked well for me:

    $ch=curl_init();
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_SSLVERSION, 3);
    
    0 讨论(0)
提交回复
热议问题