cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Need an option for explicitly specifying PASV mode in Curl 7.8.1

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Sep 2006 13:26:28 +0200 (CEST)

On Fri, 22 Sep 2006, Dharanikar Kona wrote:

> I am using curl for doing a FTP over HTTP in one of my modules. I have a few
> doubts which i would like to get clarified. I am currently using Curl 7.8.1.

Wow. More than 5 years old!

> 1. I would like to know if the default mode of operation of a curl command
> is PASV in Curl 7.8.1.

Yes, it has always been that in curl. And why even ask? It is dead simple to
check...

> 2. Secondly, there is an option "-P / --ftp-port <address>" available with
> Curl 7.8.1 which claims to switch the FTP mode of curl from PASV to PORT. It
> also mentions that if the option is used several times, the last one would
> be used. I would like to know that if the "-P" option is used twice would it
> switch back the FTP mode to PASV.

Nope and nor does it do that today.

> 3. Also, is there any way of explicilty specifying the FTP mode to be used
> as PASV in the curl command in Curl 7.8.1.

I don't think so, but then I can hardly remember that version or the FTP
support of that time, and I won't be bothered to check!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-09-22