cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: multiple file retrieval

From: <luis.guzman_at_us.socgen.com>
Date: Wed, 24 Oct 2001 14:21:53 -0400

Thanks for the response. Might you possibly be willing to share the names of
any other tools you've heard of that might be able to accomplish this =)

Thanks

Daniel Stenberg <daniel_at_haxx.se> on 10/24/2001 10:36:26 AM

Please respond to curl_at_contactor.se

To: Curl Mailinglist <curl_at_contactor.se>
cc: (bcc: Luis GUZMAN/us/socgen)
Subject: Re: multiple file retrieval

On Wed, 24 Oct 2001 luis.guzman_at_us.socgen.com wrote:

> We would like to create an automated process and use cURL to get an
> unknown range of files from an external FTP server. On the external FTP
> server, we won't know the names of the files or how many there are, all
> we would know would be the directory where the files would be located.
> I've read the documentation online and have found nothing pertaining to
> this. Can someone please lend a hand. Has this been accomplished
> before. Will it require libcurl. Please tell me there's an easier way
> ...

The tool curl is not meant to handle every possible scenario that involves
file transfers! ;-)

Like this case here. If you wanna use curl to do this for you, you should
probably write up a script that does:

 1. Get the contents of the FTP directory by running curl once.

 2. Get all those files in a second curl invoke.

Of course, if you instead decide to use libcurl through one of its many
interfaces, you could do both operations without having to disconnect between
them.

There are probably also other tools available for ftp directory downloads
that might be better suited.

--
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
 **************************************************************************
The information contained herein is confidential and is intended solely
for the addressee(s).  It shall not be construed as a recommendation to
buy or sell any security.  Any unauthorized access, use, reproduction,
disclosure or dissemination is prohibited.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
shall assume any legal liability or responsibility for any incorrect,
misleading or altered information contained herein.
 **************************************************************************
**************************************************************************
The information contained herein is confidential and is intended solely
for the addressee(s).  It shall not be construed as a recommendation to
buy or sell any security.  Any unauthorized access, use, reproduction,
disclosure or dissemination is prohibited.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
shall assume any legal liability or responsibility for any incorrect,
misleading or altered information contained herein. 
**************************************************************************
Received on 2001-10-24