views:

28

answers:

1

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'm using is already made (not by me), so I'm trying to understand it.

As far as I can tell, it uses curl_setopt() to set different options like headers and such and then it uses curl_exec() to send the request.

Ideas on how to see what post fields are being sent?

+1  A: 

You can enable the CURLOPT_VERBOSE option (with curl_setopt($curlhandle,CURLOPT_VERBOSE,1)) or use tcpdump, or wireshark to catch the network traffic.

netom