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

前端 未结 5 990
半阙折子戏
半阙折子戏 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 13:00

    You should always set the option CURLOPT_VERBOSE when you are debugging for curl. Your timeout value looks very low.

提交回复
热议问题