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: curl download multiple files in a single line command

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 18 Dec 2008 16:30:01 +0100 (CET)

On Fri, 12 Dec 2008, rodrigo welter wrote:

> I don't know beforehand the file's name that I want download in a server.
> But I want download all the files in a directory's server. Is it possible
> make this in a single line command?
>
> I've tried:
> curl -o * ftp://server/directory/* (doesn't work)
> curl -o {*} ftp://server/directory/{*} (doesn't work too)
>
> Will I have to write some script to solve this problem?

curl has no option to do that, you need to write a script or use another tool

-- 
  / 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-18

These mail archives are generated by hypermail.

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

File upload with ASP.NET