I wrote a small program to use the ExtendedFtpSession
class:
----------------------------------------------------
import ftp.engine.*;
public class FTPDownloader {
static ExtendedFtpSession sess = new
ExtendedFtpSession();
public static void main(String[] args) throws
java.io.IOException
{
sess.open("localhost");
sess.login("anonymous", "none"); //crash
}
}
----------------------------------------------------
This program fails to log in to an IIS FTP server.
(This is after I had changed the code so that it didnt
blow up if the 'output' field of ExtendedFtsSession was
null)
ALSO: if I use the FtpClient UI, it also fails to connect to
the IIS FTP server.
Here is the output that I get from the program:
USER anonymous
XPWD
sun.net.ftp.FtpProtocolException: XPWD:530 Please
login with USER and PASS.
at sun.net.ftp.FtpClient.issueCommandCheck
(FtpClient.java:201)
at ftp.engine.ExtendedFtpSession.pwd
(ExtendedFtpSession.java:477)
at ftp.engine.ExtendedFtpSession.login
(ExtendedFtpSession.java:353)
at FTPDownloader.main
(FTPDownloader.java:20)
Logged In: YES
user_id=883092
The super.login call doesn't seem to do the job, replace it
with two issueCommand(USER,...) and issueCommand(PASS,....).
--MS