cURL / Mailing Lists / curl-users / Single Mail

curl-users

Multiple file upload with curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 22 Aug 2001 08:24:14 +0200 (MET DST)

On Wed, 22 Aug 2001, Kurt wrote:

[This reply is CC'ed to the curl mailing list, please direct further mails on
this topic to that list!]

> Hi, I recently downloaded cURL for Win32. It is a very handy little
> program but I am stuck on a syntax problem :( I want to write a batch
> file to upload several files via ftp without having to login several
> times. I tried this: curl -T filename ftp://user:pass@ftp.server.com/ -T
> filename2 ftp://user:pass@ftp.server.com/ It uploaded the second file
> twice :/

Unfortunately, that is not (yet) possible using the command line tool. I
would like curl to support the operation you tried, but I have not had time
to implement it. If you're up to it, I'll welcome patches that offer this
functionality!

To achieve what you want, the way to go is with one of the programming
language APIs for libcurl. By using perl, PHP, tcl or one of the many
supported languages, you can script-upload any number of files without
logging in several times.

> Can this actually be done? I looked at the cURL site for a forum or
> discussion board but couldn't find one.

We're mainly using mailing lists. There's a range of them, and you can read
about them all here: http://curl.haxx.se/mail/

> Sorry for bothering you with what's probably a dopey question!

I don't think the question is bad. It is ceratinly valid, as you can download
files using a syntax with multuple URLs next to each other.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-08-22