Anything wrong with my cURL code (http status of 0)?

前端 未结 5 992
半阙折子戏
半阙折子戏 2020-12-30 12:11

Consistently getting a status of 0 even though if I copy and paste the url sent into my browser, I get a json object right back



        
5条回答
  •  不知归路
    2020-12-30 12:55

    Realized that I was having SSL issues. Simply set CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST to false. Works.

提交回复
热议问题