You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call the following function: curl_easy_setopt(curl, CURLOPT_INFILESIZE, (long)-1);
The man page explicitly states that the third argument of the function (filesize) may be set to '-1'.
Previous version of curl (7.56.0) does not have this problem.
The problem was originally identified when using curlftpfs. After upgrading the system installation of curl to 7.56.1 it became impossible to upload files to FTP servers mounted via curlftpfs.
The text was updated successfully, but these errors were encountered:
I did this
Call the following function:
curl_easy_setopt(curl, CURLOPT_INFILESIZE, (long)-1);
The man page explicitly states that the third argument of the function (filesize) may be set to '-1'.
I expected the following
Get return value
CURLE_OK
.instead got the following
CURLE_BAD_FUNCTION_ARGUMENT
curl/libcurl version
curl 7.56.1 (x86_64-pc-linux-gnu) libcurl/7.56.1 OpenSSL/1.0.2l zlib/1.2.11
Release-Date: 2017-10-23
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS Largefile NTLM SSL libz TLS-SRP UnixSockets HTTPS-proxy
operating system
Gentoo Base System release 2.4.1
Notes
Previous version of curl (7.56.0) does not have this problem.
The problem was originally identified when using curlftpfs. After upgrading the system installation of curl to 7.56.1 it became impossible to upload files to FTP servers mounted via curlftpfs.
The text was updated successfully, but these errors were encountered: