curl-users
Re: Ftp file
Date: Wed, 9 Oct 2002 07:30:47 -0700
>
> > I am having problems uploading a file to a remote ftp site.
> >
> > /usr/local/bin/curl -v -T /usr/www/htdocs/feeds/HELPU.zip -u
> > username:password ftp://ftp.abc.com/HELPU.zip
>
> > * About to connect() to ftp.abc.com:21
> > * Connected to ftp.abc.com (65.54.200.91) port 21
> > > USER username
> > > PASS password
> > * We have successfully logged in
> > > PWD
> > * Entry path is '/upload'
> > > EPSV
> > > PASV
> > * About to connect() to ftp.abc.com:1642
> >
> > After this bit it just stalls and eventually the program terminates, but
> > the file is not transferred.
>
> Which curl version is this on what operating system?
>
> It seems to fail to connect to the host on that given port number. You can
> try using PORT instead, with "-P -".
I am trying to connect to a windows server.
uname -a
Linux www.qqq.com 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown
curl -V
curl 7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8
/usr/local/bin/curl -v -P - -T /usr/www/feeds/HELPU.zip -u username:password
ftp://ftp.abc.com/HELPU.zip
* About to connect() to ftp.abc.com:21
* Connected to ftp.abc.com (1.2.3.4) port 21
> USER username
> PASS password
* We have successfully logged in
> PWD
* Entry path is '/upload'
* We connect from www.qqq.com
> PORT 1,2,3,2,5,247
curl: (30) Server does not grok PORT, try without it!
* Closing connection #0
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-09