cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: Re: How to avoid multiple CWD for each file download

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 21 Jun 2013 15:37:17 +0200 (CEST)

On Fri, 21 Jun 2013, Anders Havn wrote:

> So to be sure that it works on all ftp servers I should properly stick to
> CURLFTPMETHOD_MULTICWD?

That's the safest method yes and that's why it is done so by default. But
we've seen individual special cases in the past where one of the other methods
worked better...

> What about the curl handle, can I keep working on the same instance the
> programs life-time and therefore only curl_easy_init() once? Or can the
> handle somehow get invalid so the call to curl_easy_perform() fails?

You can safely keep re-using an easy handle for as long as you like. Just set
the options you like before the next curl_easy_perform().

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