cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Uploading multiple files

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 26 Jun 2005 19:44:43 +0200 (CEST)

On Sun, 26 Jun 2005, Clayton, Richard wrote:

> curl -T E:\test2.txt -T E:\test4.txt -T E:\test6.txt -u user:pass
> ftp://MyDomain.com/ ftp://MyDomain.com/ ftp://MyDomain.com/

> If anyone knows of a better way I would be most grateful.

There is no other way if you use multiple -T options, but you can use a single
-T with multiple files like this:

   curl -T '{file1,file2,file3}' ftp://upload.com/

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-06-26