I did this
curl.1 describes exit code 25 as:
25 FTP could not STOR file. The server denied the STOR operation,
used for FTP uploading.
Suggesting it is a FTP only error.
I expected the following
curl can return 25 if any upload fails (e.g. HTTP PUT):
$ cat .bashrc | curl -sST - -0 example.org
curl: (25) Chunky upload is not supported by HTTP 1.0
libcurl-errors.3 describes error 25 (CURLE_UPLOAD_FAILED) as:
CURLE_UPLOAD_FAILED (25)
Failed starting the upload. For FTP, the server typically denied
the STOR command. The error buffer usually contains the server's
explanation for this.
curl/libcurl version
curl 8.4.0
curl 8.4.0 (x86_64-pc-linux-gnu) libcurl/8.4.0 OpenSSL/3.1.3 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.11.0 nghttp2/1.57.0
Release-Date: 2023-10-11
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd
operating system
ArchLinux
Linux t420 6.1.57-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 11 Oct 2023 05:10:50 +0000 x86_64 GNU/Linux
I did this
curl.1describes exit code 25 as:Suggesting it is a FTP only error.
I expected the following
curlcan return 25 if any upload fails (e.g. HTTP PUT):$ cat .bashrc | curl -sST - -0 example.org curl: (25) Chunky upload is not supported by HTTP 1.0libcurl-errors.3describes error 25 (CURLE_UPLOAD_FAILED) as:curl/libcurl version
curl 8.4.0
operating system
ArchLinux