Make cURL output STDERR to file (or string)

后端 未结 6 1908
醉话见心
醉话见心 2020-12-03 11:30

We\'re trying to debug some cURL errors on the server, and I would like to see the STDERR log. Currently, all we can see for our error is \"error code: 7\" and that we can\'

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 12:07

    A bit late to the party, but this page still pops up high in Google, so let's go.

    It seems that CURLOPT_VERBOSE doesn't log anything if CURLINFO_HEADER_OUT is also set to TRUE.

    This is a know bug in PHP (#65348), and due to reasons they decided not to fix it.

提交回复
热议问题