PDA

View Full Version : pret support


type
02-11-2010, 01:04 AM
is PRET support by jscape?

mjawwad
02-13-2010, 10:17 PM
You can issue a PRET command by using the Ftp.issueCommand() method or the Ftp.issueCommandCheck() method.

For example :

Ftp f = new Ftp("hostname", "username", "password");
f.setDebug(true);
f.setPassive(true);
f.connect();
String response = f.issueCommand("PRET RETR file.txt");
f.download("file.txt");
f.disconnect();

Best Regards,