cURL requires CURLOPT_SSL_VERIFYPEER=FALSE

前端 未结 3 1702
温柔的废话
温柔的废话 2020-12-01 08:04

I was using cURL on my localhost for the longest time and all the sudden I noticed it no longer works unless I explictly set the option, CURLOPT_SSL_VERIFYPEER=

3条回答
  •  无人及你
    2020-12-01 08:39

    The value for CURLOPT_SSL_VERIFYPEER by default is TRUE as of cURL 7.10.

    Hence you may need to explicitly set it to FALSE to prevent CURL from verifying the certificate.

提交回复
热议问题