curl-library
RE: Re: Documentation on how to do a zero-byte POST is misleading
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 21 Nov 2007 22:25:09 +0100 (CET)
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: http://haxx.se/curl.htmlReceived on 2007-11-21