curl-users
RE: FTP problem
Date: Tue, 31 Jan 2006 12:42:46 -0000
Daniel
We "think" the remote server only supports PORT but if I try
curl -T D:\ftpexternal\filname.dat -u user.pass ftp://ftp.pleasework.com/incoming/ --disable-eprt --use-ascii
I still get
== Info: We have successfully logged in
=> Send header, 5 bytes (0x5)
0000: PWD
<= Recv header, 31 bytes (0x1f)
0000: 257 "/" is current directory.
== Info: Entry path is '/'
== Info: protocol connect phase DONE
== Info: DO phase starts
=> Send header, 14 bytes (0xe)
0000: CWD incoming
<= Recv header, 29 bytes (0x1d)
0000: 250 CWD command successful.
=> Send header, 6 bytes (0x6)
0000: PASV
== Info: Connect data stream passively
<= Recv header, 51 bytes (0x33)
0000: 227 Entering Passive Mode (xx.xx.xx.xx,126,128)
== Info: Trying xx.xx.xx.xx... == Info: Timed out
== Info: couldn't connect to host
== Info: DO phase is comlete
== Info: Remembering we are in dir incoming/
== Info: Uploaded unaligned file size (0 out of 13524 bytes)
== Info: Closing connection #0
I thought --disable-eprt would mean it wouldn't even try Passive.
I'm using curl 7.13
Richard
> -----Original Message-----
> From: Daniel Stenberg [SMTP:daniel_at_haxx.se]
> Sent: Tuesday, January 31, 2006 11:52 AM
> To: the curl tool
> Subject: Re: FTP problem
>
> On Tue, 31 Jan 2006, Clayton, Richard wrote:
>
> > curl -T D:\ftpexternal\Carriers\filename.dat -u user:pass
> > ftp://ftp.somewhere.com/incoming/ --disable-epsv
>
> ...
>
> > 0000: PASV
> > == Info: Connect data stream passively
> > <= Recv header, 51 bytes (0x33)
> > 0000: 227 Entering Passive Mode (xx,xx,xx,xx,188,145)
> > == Info: Trying xx,xx,xx,xx,.36... == Info: Timed out
> > == Info: couldn't connect to host
>
> The server responds with an IP+port that you can't connect to. That might be a
> silly server or something in between you and the server that messes this up.
> Like a firewall, a NAT or similar.
>
> > Normally I would blame the remote server for this failure as we have no
> > problems sending to anyone else. BUT - I have no problems sending files to
> > this server using Terrapin FTP or from a DOS prompt.
>
> And they use PASV fine and get the same IP and somewhat similar port number?
>
> > I added --disable-epsv as it was timing out when trying to go into extended
> > passive mode
>
> That indicates a problem as well. Using EPSV should not impose a problem if
> all things are fine.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
**********************************************************************************
This message is sent in strict confidence for the addressee only. It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**********************************************************************************
Received on 2006-01-31