cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Big problems with EPSV

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 26 May 2004 21:22:00 +0200 (CEST)

On Wed, 26 May 2004, Eric VERGNAUD wrote:

> It appears that IE is first trying a PORT command, which is successful, so I
> guess IE only uses EPSV when PORT fails, or maybe it never uses EPSV.
>
> How can PORT succeed when my computer is behind a router ?
>
> My computer's lan address is 192.168.0.8. IE sends:
>
> PORT 192,168,0,8,6,95
>
> Would curl do something similar if I set the ftp port ?

Yes it will. Try this:

        curl -P - ftp://host/path

(curl will first try EPRT, but you can disable that with --disable-eprt if it
causes trouble)

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-05-26