curl-users
error while ftp zero byte file
Date: Mon, 9 Jun 2008 10:56:05 -0700 (PDT)
Hi,
libcurl returned error after GET a 0 byte file and try to delete the file. I'm using version 7.16.2
* Re-using existing connection! (#0) with host test1
* Connected to test1(192.168.57.10) port 21 (#0)
* Request has same path as previous transfer
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||55575|)
* Trying 192.168.57.10... * connected
* Connecting to 192.168.57.10 (192.168.57.10) port 55575
> SIZE aaa
< 213 0
> RETR aaa
< 150 Opening ASCII mode data connection for aaa (0 bytes).
* Maxdownload = -1
* Getting file with size: 0
* Connection died, retrying a fresh connect
* Remembering we are in dir ~/in/
< 226 Transfer complete.
> DELE aaa
< 250 DELE command successful.
> QUIT
< 221-You have transferred 0 bytes in 2 files.
< 221-Total traffic for this session was 632 bytes in 2 transfers.
< 221-Thank you for using the FTP service on test1.
< 221 Goodbye.
* Closing connection #0
* Issue another request to this URL: 'ftp://test1:21/~/in/aaa'
* About to connect() to test1port 21 (#0)
* Trying 192.168.57.10... * connected
* Connected to test1(192.168.57.10) port 21 (#0)
< 220 test1 FTP server ready.
> USER test
< 331 Password required for test.
> PASS test
< 230 User test logged in.
> PWD
< 257 "/export/home/test" is current directory.
* Entry path is '/export/home/test'
> CWD ~/in
< 250 CWD command successful.
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||62821|)
* Trying 192.168.57.10... * connected
* Connecting to 192.168.57.10 (192.168.57.10) port 62821
> TYPE A
< 200 Type set to A.
> SIZE aaa
< 550 aaa: No such file or directory.
> RETR aaa
< 550 aaa: No such file or directory.
* RETR response: 550
* Remembering we are in dir ~/in/
* Connection #0 to host test1left intact
[06/09/2008 10:25:09] Error while trying to delete aaa.
Detailed error:RETR response: 550
Curl errCode:19 Curl error: FTP: couldn't retrieve (RETR failed) the specified file
Received on 2008-06-09