PHP - Debugging Curl

后端 未结 8 1332
無奈伤痛
無奈伤痛 2020-11-21 11:35

I\'d like to see what the post fields in the request are before I send it. (For debugging purposes).

The PHP library (class) I am using is already made (not by me),

8条回答
  •  你的背包
    2020-11-21 12:13

    If you just want a very quick way to debug the result:

    $ch = curl_init();
    curl_exec($ch);
    $curl_error = curl_error($ch);
    echo ""
    

提交回复
热议问题