cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Upload Directory and log for multiple uploads

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 25 Dec 2008 15:49:59 +0100 (CET)

On Tue, 23 Dec 2008, Hagimeno wrote:

> Seems not possible to upload a directory using curl. This is true or there
> is a trick or workaround?

Well, you can upload multiple files and you can easily write a script that
then uploads an entire directory. curl by itself cannot, no.

> 2) is possible using a multiple upload like curl -# -T
> '{/Users/dev/test_1.pdf,/Users/dev/test_2.pdf}'-w "upload_completed".... to
> have the label "upload_completed" each time a file is uploaded succesfully

No.

> Any suggestion?

1. write a script that do multiple curl invokes

2. write a script that uses the libcurl binding and have it upload things and
    output exactly what you want!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-12-25