<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,6 @@
+2009-04-29 - Sean Huber (shuber@huberry.com)
+  * POSTFIELDS are not set unless specified
+
 2009-03-30 - Sean Huber (shuber@huberry.com)
   * Set the POSTFIELDS after setting the request method
 </diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -79,7 +79,7 @@ class Curl
         curl_setopt($this-&gt;handle, CURLOPT_COOKIEJAR, $this-&gt;cookie_file);
         curl_setopt($this-&gt;handle, CURLOPT_FOLLOWLOCATION, true);
         curl_setopt($this-&gt;handle, CURLOPT_HEADER, true);
-        curl_setopt($this-&gt;handle, CURLOPT_POSTFIELDS, (is_array($vars) ? http_build_query($vars, '', '&amp;') : $vars));
+        if (!empty($vars)) curl_setopt($this-&gt;handle, CURLOPT_POSTFIELDS, (is_array($vars) ? http_build_query($vars, '', '&amp;') : $vars));
         curl_setopt($this-&gt;handle, CURLOPT_REFERER, $this-&gt;referer);
         curl_setopt($this-&gt;handle, CURLOPT_RETURNTRANSFER, true);
         curl_setopt($this-&gt;handle, CURLOPT_URL, $url);</diff>
      <filename>curl.php</filename>
    </modified>
    <modified>
      <diff>@@ -86,7 +86,7 @@ class Curl
         curl_setopt($this-&gt;handle, CURLOPT_COOKIEJAR, $this-&gt;cookie_file);
         curl_setopt($this-&gt;handle, CURLOPT_FOLLOWLOCATION, true);
         curl_setopt($this-&gt;handle, CURLOPT_HEADER, true);
-        curl_setopt($this-&gt;handle, CURLOPT_POSTFIELDS, (is_array($vars) ? http_build_query($vars, '', '&amp;') : $vars));
+        if (!empty($vars)) curl_setopt($this-&gt;handle, CURLOPT_POSTFIELDS, (is_array($vars) ? http_build_query($vars, '', '&amp;') : $vars));
         curl_setopt($this-&gt;handle, CURLOPT_REFERER, $this-&gt;referer);
         curl_setopt($this-&gt;handle, CURLOPT_RETURNTRANSFER, true);
         curl_setopt($this-&gt;handle, CURLOPT_URL, $url);</diff>
      <filename>curl.php4</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>07f4a74b2568b23384ece373f373cb075e6cc3fc</id>
    </parent>
  </parents>
  <author>
    <name>Sean Huber</name>
    <email>shuber@huberry.com</email>
  </author>
  <url>http://github.com/shuber/curl/commit/6a53322aa47f39dbdc9eae06d1026954c371b53b</url>
  <id>6a53322aa47f39dbdc9eae06d1026954c371b53b</id>
  <committed-date>2009-04-29T11:06:18-07:00</committed-date>
  <authored-date>2009-04-29T11:06:18-07:00</authored-date>
  <message>POSTFIELDS are not set unless specified</message>
  <tree>ef263f2a49e84e63e6df1eca5dc98e7d1eb2cc30</tree>
  <committer>
    <name>Sean Huber</name>
    <email>shuber@huberry.com</email>
  </committer>
</commit>
