cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Downloading multiple files using libcurl sftp

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 21 Jun 2013 08:08:05 +0200

On Fri, Jun 21, 2013 at 12:06:11PM +1000, Yong Liaw wrote:
> Does libcurl support downloading multiple files one after another on a single
> sftp connection?

Yes.

> My understanding is that for each curl_easy_perform(), it establishes a new
> connection for the file transfer.

No, it keeps connections open whenever possible.

> I would like to establish a single connection that I can use to download
> multiple files, as my sftp server has a long login time (i.e. 15 seconds).

That's exactly what this features is designed for! See
http://curl.haxx.se/docs/faq.html#How_do_I_fetch_multiple_files_wi

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-06-21