cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Is it possible to reuse a curl_easy FTP handle

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 29 Mar 2003 08:59:08 +0100 (CET)

On Fri, 28 Mar 2003, Mudumbai, Rajanarayanan wrote:

> I would like to reuse a curl session handle to do multiple FTP transfers to
> upload files from C. The file names will be different for each transfer and
> I want to avoid closing and reopening sessions.
>
> I saw an example - persistant.c - that downloads URLs, but is a persistent
> connection possible for multiple FTPs ?

Yes. You can always re-use the easy handle, the library will then re-use
connections as much as it can.

> If so is there a sample C code ?

I don't think so. But I will gladly accept any example sources showing
this...

You basicly just rewrite persistant.c to do uploads instead.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
Received on 2003-03-29