cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: error while ftp zero byte file

From: Yin Lin <yin_cs80_at_yahoo.com>
Date: Mon, 9 Jun 2008 11:11:20 -0700 (PDT)

I compared 0 byte log with non-zero byte transfer:
&lt; 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/
&lt; 226 Transfer complete.
&nbsp;
non-zero bytes:
&nbsp;
* Getting file with size: 3
* Remembering we are in dir ~/in/
&lt; 226 Transfer complete.
&nbsp;
I think the "Connection died, retrying a fresh connect" caused this problem. Is it a known issue? Any work arround?

--- On Mon, 6/9/08, Yin Lin &lt;yin_cs80_at_yahoo.com&gt; wrote:

From: Yin Lin &lt;yin_cs80_at_yahoo.com&gt;
Subject: error while ftp zero byte file
To: curl-users_at_cool.haxx.se
Date: Monday, June 9, 2008, 10:56 AM

Hi,
libcurl returned error after GET a 0 byte file and try to delete the file. I'm using version 7.16.2
&nbsp;
&nbsp;
* 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
&gt; EPSV
* Connect data stream passively
&lt; 229 Entering Extended Passive Mode (|||55575|)
*&nbsp;&nbsp; Trying 192.168.57.10... * connected
* Connecting to 192.168.57.10 (192.168.57.10) port 55575
&gt; SIZE aaa
&lt; 213 0
&gt; RETR aaa
&lt; 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/
&lt; 226 Transfer complete.
&gt; DELE aaa
&lt; 250 DELE command successful.
&gt; QUIT
&lt; 221-You have transferred 0 bytes in 2 files.
&lt; 221-Total traffic for this session was 632 bytes in 2 transfers.
&lt; 221-Thank you for using the FTP service on test1.
&lt; 221 Goodbye.
* Closing connection #0
* Issue another request to this URL: 'ftp://test1:21/~/in/aaa'
* About to connect() to test1port 21 (#0)
*&nbsp;&nbsp; Trying 192.168.57.10... * connected
* Connected to test1(192.168.57.10) port 21 (#0)
&lt; 220 test1 FTP server ready.
&gt; USER test
&lt; 331 Password required for test.
&gt; PASS test
&lt; 230 User test logged in.
&gt; PWD
&lt; 257 "/export/home/test" is current directory.
* Entry path is '/export/home/test'
&gt; CWD ~/in
&lt; 250 CWD command successful.
&gt; EPSV
* Connect data stream passively
&lt; 229 Entering Extended Passive Mode (|||62821|)
*&nbsp;&nbsp; Trying 192.168.57.10... * connected
* Connecting to 192.168.57.10 (192.168.57.10) port 62821
&gt; TYPE A
&lt; 200 Type set to A.
&gt; SIZE aaa
&lt; 550 aaa: No such file or directory.
&gt; RETR aaa
&lt; 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.&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Detailed error:RETR response: 550
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Curl errCode:19 Curl error: FTP: couldn't retrieve (RETR failed) the specified file

      
Received on 2008-06-09