[1626] in java-interest
Help On FTP
daemon@ATHENA.MIT.EDU (Richard Wahongan)
Mon Sep 11 18:13:28 1995
Date: Mon, 11 Sep 1995 19:13:35 +1000 (EST)
From: Richard Wahongan <n1061925@dodo.fit.qut.edu.au>
To: Java Interest <java-interest@java.Eng.Sun.COM>
// FTP Test
import java.io.*;
import net.ftp.FtpClient;
class FTPtest
{
public static void main (String args[])
{
FtpClient client = new FtpClient("student.fit.qut.edu.au");
System.out.println("Proxy = " + client.ftpProxyHost);
client.login("myusername", "mypassw");
client.ascii();
client.list();
client.get("remote_file"); // ascii file
client.put("local_file");
System.out.println("Closing connection !!");
}
}
This is my code to open an FTP connection with student.fit.qut.edu.au
But it doesn't really work !
The problems :
1) It doesn't get the 'remote_file'
2) It puts the 'local_file' but the file is empty
3) the method 'list' doesn't work !
Any one knows what's the problem ?
1) Do I have to assign the variable 'ftpProxyHost'
Thanks for any suggestion/help !
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ @
@ Richard Wahongan @
@ @
@ Bach. of Info. Tech. (Hons) | Phone : 61-7-378 3047 (Home) @
@ Faculty of Information Techn | 61-41-111 5347 (Home) @
@ Queensland Uni. of Tech. | Email : n1061925@dodo.fit.qut.edu.au @
@ Bribane 4001 AUSTRALIA | @
@ @
@ WWW : http://student.fit.qut.edu.au/~n1061925/ @
@ @
@ " Test Everything. Hold on to the good. " @
@ @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com