Hello:
I try to get file or list the directory using edtftpj, never succeed. But I can get it with curl.
here are the logs:
curl:
== Info: About to connect() to nocmonitor.supplyframe.com port 21 (#0)
== Info: Trying 10.0.144.241...
== Info: connected
== Info: Connected to nocmonitor.supplyframe.com (10.0.144.241) port 21 (#0)
<= Recv header, 50 bytes (0x32)
220 nocmonitor.supplyframe.com FTP server ready...
=> Send header, 15 bytes (0xf)
USER digikey1..
<= Recv header, 37 bytes (0x25)
331 Password required for digikey1...
=> Send header, 17 bytes (0x11)
PASS ******..
<= Recv header, 30 bytes (0x1e)
230 User digikey1 logged in...
=> Send header, 5 bytes (0x5)
PWD..
<= Recv header, 31 bytes (0x1f)
257 "/" is current directory...
== Info: Entry path is '/'
=> Send header, 6 bytes (0x6)
EPSV..
== Info: Connect data stream passively
<= Recv header, 37 bytes (0x25)
502 'EPSV': command not understood...
== Info: disabling EPSV usage
=> Send header, 6 bytes (0x6)
PASV..
<= Recv header, 49 bytes (0x31)
227 Entering Passive Mode (10,0,144,241,22,203)..
== Info: Trying 10.0.144.241... == Info: connected
== Info: Connecting to 10.0.144.241 (10.0.144.241) port 5835
=> Send header, 8 bytes (0x8)
TYPE A..
<= Recv header, 20 bytes (0x14)
200 Type set to A...
=> Send header, 6 bytes (0x6)
LIST..
<= Recv header, 63 bytes (0x3f)
150 Opening ASCII mode data connection for directory listing...
== Info: Maxdownload = -1
<= Recv data, 46 bytes (0x2e)
total 558856..-rw-r--r-- 1 digikey1 staff 1
<= Recv data, 120 bytes (0x78)
30467825 Aug 11 01:14 digikey_inventory.txt..
-rw-r--r-- 1 digikey1 staff 155662914 Jul 27 10:05 normalized_feed.txt..
== Info: Remembering we are in dir ""
<= Recv header, 24 bytes (0x18)
226 Transfer complete...
== Info: Connection #0 to host nocmonitor.supplyframe.com left intact
=> Send header, 6 bytes (0x6)
QUIT..
<= Recv header, 46 bytes (0x2e)
221-You have transferred 0 bytes 0 files...
<= Recv header, 65 bytes (0x41)
221-Total traffic for this session was 69 bytes in 0 transfers...
<= Recv header, 72 bytes (0x48)
221-Thank you for using the FTP service on nocmonitor.supplyframe.com...
<= Recv header, 14 bytes (0xe)
221 Goodbye...
== Info: Closing connection #0
edtftpj:
DEBUG [FTPClient] 15 Sep 2009 12:07:27.715 : Connecting to ftp.supplyframe.com/66.186.28.41:21
DEBUG [SocketUtils] 15 Sep 2009 12:07:27.747 : Invoking connect with timeout=60000
DEBUG [SocketUtils] 15 Sep 2009 12:07:27.762 : Connected successfully
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:31.856 : 220 nocmonitor.supplyframe.com FTP server ready.
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:31.856 : ---> USER testuser
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:32.122 : 331 Password required for testuser.
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:32.122 : ---> PASS ********
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:32.200 : 230 User testuser logged in.
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:32.215 : ---> SYST
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:32.215 : 215 UNIX Type: L8 Version: BSD-199506
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:32.231 : ---> PWD
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:32.231 : 257 "/" is current directory.
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:32.231 : ---> PASV
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:32.247 : 227 Entering Passive Mode (66,186,28,41,197,44)
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:32.262 : ---> LIST .
DEBUG [FTPControlSocket] 15 Sep 2009 12:07:32.278 : 150 Opening ASCII mode data connection for directory listing.
ERROR [FTPControlSocket] 15 Sep 2009 12:07:33.372 : Control channel unexpectedly closed ('' read so far)
com.enterprisedt.net.ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
at com.enterprisedt.net.ftp.FTPControlSocket.readLine(FTPControlSocket.j
ava:967)
at com.enterprisedt.net.ftp.FTPControlSocket.readReply(FTPControlSocket.
java:997)
at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:3378)
at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:3282)
at Test_FTP.main(Test_FTP.java:29)
any help will be appreciated!