curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLE_BAD_FUNCTION_ARGUMENT when setting CURLOPT_POSTFIELDSIZE to -1

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 1 Nov 2017 02:18:36 -0400

On 10/31/2017 10:02 PM, Andrew Lambert wrote:
> I just downloaded 7.56.1 and discovered that setting
> CURLOPT_POSTFIELDSIZE to -1 returns CURLE_BAD_FUNCTION_ARGUMENT.
>
> Was this intentional? From change message it looks like it might have
> been changed by accident:
> https://github.com/curl/curl/blame/fa394c8c2e39ea327d668f14353b32580e821b1c/lib/url.c#L1146
>
> The documentation for CURLOPT_POSTFIELDSIZE still says that -1 is
> meaningful: https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE.html

It was a mistake. Thanks, fixed in
https://github.com/curl/curl/commit/b8bd6dc

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-11-01