cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Bug in cURL?? (command line w/ "--local-port" option)...

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 23 Nov 2006 11:12:14 -0800

On Thu, Nov 23, 2006 at 07:59:29AM -0800, Scott Fletcher wrote:
> The paper I got from the SunTrust bank said this...
>
> --snip--
> DNS: onlinefiletransfer.suntrust.com
> REMOTE ID: ***
> PSW: ***
> PROTOCOL: FTPS(SSL/AUTH)
> PASSIVE MODE
> EXPLICIT
> CONNECTION PORT : 20021
> DATA CONTROL PORT RANGE: 20050-20750
>
> cd /ARAUTOAC then put filename (for transferring over)
> --snip--

Since they specify passive mode, the data control port range they give is
advisory only (in case you need to poke some holes through a local firewall).

> Something I should know about? Also, is this command
> line correct (if we leave out the "--local-port"
> command's option).
>
> --snip--
> curl -v -T "file_testcase.txt" --disable-epsv
> --disable-eprt --ftp-pasv --ftp-ssl --local-port
> "20050-20750" -u "***:***"
> "ftp://onlinefiletransfer.suntrust.com:20021" --quote
> "CWD /ARAUTOAU"
> --snip--

You shouldn't need a --local-port nor --quote here. Change the URL to
ftp://onlinefiletransfer.suntrust.com:20021//ARAUTOAU instead of doing a
manual CWD.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-11-23