cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Ftp file

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Oct 2002 22:48:25 +0200 (MET DST)

On Fri, 11 Oct 2002, Jason Webber wrote:

> >Does other ftp commands work against this server?
>
> I can use the ftp command in Linux and it has no problem. However, if I
> transfer to passive mode under ftp command I still get the same hanging
> affect to which eventually it just quits.

Ok, that explains why it fails at first. You need PORT then, using -P.

> > > PORT 1,2,3,2,5,247
> >>curl: (30) Server does not grok PORT, try without it!
>
> >So PORT is definetely wrong then.

It just struck me that perhaps curl picks the wrong IP for the PORT command?
Do you have multiple network interfaces on this host? I fixed the "pick a
suitable default IP for PORT" in 7.10, and before that it used the system's
"default IP" which might not at all be the correct one.

You can try by using "-P ethX" or similar to tell curl to use the address
from one of your interfaces, or even "-P 123.45.56.78" to tell curl exacty
which address you want the remote server to contact you back with.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-11