cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Active FTP uploads

From: Patrick Heeb <speedpat_at_gmx.net>
Date: Fri, 09 Jun 2006 10:58:45 +0200

Daniel Stenberg wrote:
> On Fri, 9 Jun 2006, Patrick Heeb wrote:
>
>> I checked out the CVS version and tried your test against my ftp
>> server (vsftpd 2.0.3 on Debian Sarge). I only added a timeout of 20s
>> (CURLOPT_TIMEOUT). The same thing:
>
> Hm. I now tried the lib525 tool against my own ProFTPD 1.3.0 server on
> localhost and... it works fine! (debian unstable and CVS libcurl)
>
> This makes me curious: what if you use the curl tool from the command
> line to upload a file ("curl -T localfile
> ftp://bast:bast12@legolas//home/bast/lib525"), does that work or show
> the same problem?
>
strange thing...
the lib525 tool against a localhost ProFTPD (1.2.10) on debian stable
also works for me,
but not to a remote one (legolas: ProFTPD 1.2.10 - debian stable).

using the command line (CVS Version) works as well:

ph_at_biochips:~/workspaces/c/curl-src/src$ ./curl -vP 192.168.2.224 -T
/home/ph/index.html ftp://bast:bast12@legolas//home/bast/index.html
* About to connect() to legolas port 21
* Trying 192.168.2.94... connected
* Connected to legolas (192.168.2.94) port 21
< 220 ProFTPD 1.2.10 Server (Debian) [192.168.2.94]
> USER bast
< 331 Password required for bast.
> PASS bast12
< 230 User bast logged in.
> PWD
< 257 "/home/bast" is current directory.
* Entry path is '/home/bast'
> CWD /home
< 250 CWD command successful
> CWD bast
< 250 CWD command successful
> EPRT |1|192.168.2.224|50440|
< 200 EPRT command successful
* Connect data stream actively
> TYPE I
< 200 Type set to I
> STOR index.html
< 150 Opening BINARY mode data connection for index.html
* Connection accepted from server
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
100 119 0 0 100 119 0 6380 --:--:-- --:--:--
--:--:-- 6380* Remembering we are in dir /home/bast/
< 226 Transfer complete.
100 119 0 0 100 119 0 6029 --:--:-- --:--:--
--:--:-- 0* Connection #0 to host legolas left intact

> QUIT
< 221 Goodbye.
* Closing connection #0
Received on 2006-06-09