title: PHP curl -- get POST fields on instantiated curl resource?
body: <p>Is there any way to retrieve the POST fields set on a curl resource?</p>
  
  <p>e.g.</p>
  
  <p><code>curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);</code></p>
  
  <p>Is there any way to retrieve the <code>$payload</code> from <code>$ch</code>?</p>
  
  <p>I've seen <code>curl_getinfo</code>: <a href="http://www.php.net/manual/en/function.curl-getinfo.php" rel="nofollow">http://www.php.net/manual/en/function.curl-getinfo.php</a> but it doesn't seem to return such data.</p>