sftp upload of multiple files stopped working
Date: Wed, 20 Nov 2019 08:54:34 +0100
Hello everybody,
I recently use curl to upload multiple files via sftp in one session. It worked great until last week when I updated from curl 7.66.0 to curl 7.6.7.0. For me it looks like the globbing feature with curly brackets doesn’t work anymore. In the past, the following worked out:
sh -c '/opt/local/bin/curl -k -s -S --fail-early --ftp-create-dirs --retry 0 -u <user>:<passwd> sftp://localhost/~/Documents/ -T "{/Volumes/Macintosh HD2/Datenbanken-aktuell/RfB-Surveys-Dev-V17R6/Resources/sftpTest/local/pic1.png,/Volumes/Macintosh HD2/Datenbanken-aktuell/RfB-Surveys-Dev-V17R6/Resources/sftpTest/local/pic2.png}“‘
With version 7.67.0 only the first file (pic1.png) is uploaded and I get the following error:
curl: (3) URL using bad/illegal format or missing URL\n
Uploading just one file still works without an error message:
sh -c '/opt/local/bin/curl -k -s -S --fail-early --ftp-create-dirs --retry 0 -u <user>:<passwd> sftp://localhost/~/Documents/ -T "{/Volumes/Macintosh HD2/Datenbanken-aktuell/RfB-Surveys-Dev-V17R6/Resources/sftpTest/local/pic1.png}"'
I have installed curl with macports. Here are the versions I tested with:
curl 7.65.1 (x86_64-apple-darwin17.7.0) libcurl/7.65.1 OpenSSL/1.0.2s zlib/1.2.11 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) libssh2/1.8.2
Release-Date: 2019-06-05
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTPS-proxy IDN IPv6 Largefile libz NTLM NTLM_WB PSL SSL TLS-SRP UnixSockets
curl 7.66.0 (x86_64-apple-darwin16.7.0) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTPS-proxy IDN IPv6 Largefile libz NTLM NTLM_WB PSL SSL TLS-SRP UnixSockets
curl 7.67.0 (x86_64-apple-darwin18.7.0) libcurl/7.67.0 OpenSSL/1.1.1d zlib/1.2.11 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) libssh2/1.9.0
Release-Date: 2019-11-06
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTPS-proxy IDN IPv6 Largefile libz NTLM NTLM_WB PSL SSL TLS-SRP UnixSockets
Can anybody confirm this behavior and maybe fix it? :-)
Best regards
Johannes
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-11-20