cURL / Mailing Lists / curl-library / Single Mail


RE: Re: Documentation on how to do a zero-byte POST is misleading

From: Daniel Stenberg <>
Date: Wed, 21 Nov 2007 22:25:09 +0100 (CET)

On Wed, 21 Nov 2007, McGarvey, Kevin wrote:

>>> but this doesn't:
>>> curl_rc = curl_easy_setopt(clntPtr_, CURLOPT_POSTFIELDSIZE, 0);
>>> curl_rc = curl_easy_setopt(clntPtr_, CURLOPT_POSTFIELDS, NULL);
> 7.15.5-1.fc5

That's why then, as it works fine in more recent versions. I couldn't find
exactly which version that fixed it right now, but my current dev version has
no problem doing exactly what you showed.

  Commercial curl and libcurl Technical Support:
Received on 2007-11-21