cURL / Mailing Lists / curl-users / Single Mail

curl-users

problem with wildcards

From: Lefevre Pascal <pascal.lefevre_at_b-holding.be>
Date: Thu, 28 Apr 2011 10:05:56 +0000

I try to do a download via FTP using wildcards and it does not work...

exemple follows:

1# curl -V
curl 7.21.3 (sparc-sun-solaris2.8) libcurl/7.21.3 OpenSSL/1.0.0d zlib/1.2.5 libidn/1.20 libssh2/1.2.7
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM SSL libz

2# curl -u user:password -l ftp://mysite/ictra/inbox/general/
here.reg
Draft1.drf

3# curl -u user:password -l ftp://mysite/ictra/inbox/general/h*
here.reg
Draft1.drf

4# curl -u user:password ftp://mysite/ictra/inbox/general/h*
curl: (78) RETR response: 550

5# curl -u user:password --remote-name-all ftp://mysite/ictra/inbox/general/h*

  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (78) RETR response: 550

command 2: shows that there are 2 files in this directory
command 3: shows both files with option -l (doesn't care about wildcard)
command 4: shows an error (why?)
command5: cannot get files

NB: I tried the same command with a curl version 7.21.6 on Windows and get exactly the same results.
         Obviously, I missed something ...
         Is there some option to "activate" wildcard ? ( I saw CURLOPT_WILDCARDMATCH<http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTWILDCARDMATCH> in libcurl, but saw nothing in curl )

Last question: is it working with SFTP ?

Thanks,

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-28