title: unset curl CURLOPT_POSTFIELDS
body: <p>I have an PHP class which is used to POST some data to a server, and GET some data back using the same open connection.
  The problem is that this code will try to POST data from 1st request, in the 2nd request...</p>
  
  <pre><code>curl_setopt(self::$ecurl, CURLOPT_CUSTOMREQUEST, "PUT");
  curl_setopt(self::$ecurl, CURLOPT_POSTFIELDS, $data);
  $request=curl_exec(self::$ecurl);
  curl_setopt(self::$ecurl, CURLOPT_CUSTOMREQUEST, "GET");
  $request=curl_exec(self::$ecurl);
  </code></pre>
  
  <p>So i need the way to unset <code>CURLOPT_POSTFIELDS</code>. I tried to use <code>curl_setopt(self::$ecurl, CURLOPT_POSTFIELDS, null);</code>, but anyway curl send <code>Posting 0 bytes...</code> in request's header.</p>
  
  <p>Also please note, that i need to use exactly the same connection, so I can't create another connection via curl_init.</p>