title: PHP - Debugging Curl
body: <p>I'd like to see what the post fields in the request are before I send it. (For debugging purposes).</p>
  
  <p>The PHP library (class) I am using is already made (not by me), so I am trying to understand it.</p>
  
  <p>As far as I can tell, it uses <code>curl_setopt()</code> to set different options like headers and such and then it uses <code>curl_exec()</code> to send the request.</p>
  
  <p>Ideas on how to see what post fields are being sent?</p>