curl / Mailing Lists / curl-library / Single Mail

curl-library

CURLE_BAD_FUNCTION_ARGUMENT when setting CURLOPT_POSTFIELDSIZE to -1

From: Andrew Lambert <andrew_at_boredomsoft.org>
Date: Tue, 31 Oct 2017 19:02:20 -0700

Hello,

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

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