cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: multiple upload syntax?

From: Jim Doutt <jdoutt_at_whoi.edu>
Date: Tue, 19 Aug 2003 11:27:20 -0400

Hi,

    Last week I was going to post a question regarding how to do this
very thing! Thanks for thinking of adding it to CURL!

   I would like to see the additional ability to have multiple files
DOWNLOADED from a single URL in a single command.

   I've been using CURL to transfer data via a common FTP server between
an embedded system and my development system. Since I don't want to
embed my password in the script I have to type it every time CURL
connects to the common site. Having the ability to transfer multiple
files would allow me to type the password only once per session.

I also like version C!

jim

Daniel Stenberg wrote:

>Hi
>
>I was thinking about how to add support for specifying multiple files to get
>uploaded in a single command line, and I thought I'd better get your help.
>
>Currently curl supports download of multiply specified URLs fine. Adding the
>same level of support for uploads would be cool.
>
>Now, how should such a command line syntax be?
>
>Current command line for uploading one file:
>
> curl -T localfile ftp://site.com/remotedir/
>
>or if we want to use a different file name on the remote side:
>
> curl -T localfile ftp://site.com/remotedir/remotefile
>
>VERSION A:
>
> Multiple -T options allowed but all upload to the same URL:
>
> curl -T file1 -T file2 ftp://site.com/
>
>VERSION B:
>
> One -T option for each provided URL:
>
> curl -T file1 ftp://site1.com/ -T file2 ftp://site2.com/
>
>VERSION C:
>
> An extended version B: each -T can specify multiple files:
>
> curl -T {file1,file2} ftp://site.com/ -T {file3,file4} \
> ftp://site2.com/
>
>Any comments? Any favourites? Any other suggestions?
>
>
>

-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
Received on 2003-08-20

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET