cURL / Mailing Lists / curl-library / Single Mail

curl-library

EPSV vs PASV

From: Leo <leo.r_at_rogers.com>
Date: Wed, 19 Jan 2011 01:33:24 -0500

Hi everyone,

I wonder what's the universal way of handling the following issue:

By default, libcurl always tries EPSV first, then PASV. However, some
FTP sites don't like EPSV and it's impossible to connect unless you
disable it.

On the other hand, there are FTP sites that demand EPSV and won't let
you connect if it's disabled.

So what approach should be used to be able to connect to any site?

Is there a way to query FTP site for preferred command before setting an
appropriate libcurl option?

(Same dilemma is about passive vs active connection as well).

Am I missing something obvious?

Thanks,
Leo

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-19