Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.9k views
in Java FTP by (120 points)
Hello,

I am having problem getting the right reply code if any at all;
If for any reason the file I am trying to ftp in does not exist on the remote server I still get a 200 reply code....

Is there article with more detail informations about getLastValidReply()

thanks you
below is a typical scenario:

ftp> cd /tmp
250 CWD command successful.
ftp> cd /tmp
---> CWD /tmp
250 CWD command successful.
ftp> get testing
---> PORT x,x,x,x,x,x
200 PORT command successful.
---> RETR testing
550 testing: No such file or directory.
ftp>

I am expecting the last valid return code to be 550 and not 200

1 Answer

0 votes
by (162k points)
It returns the last non-error reply, which in this case is 200.

The 550 is considered a "non-valid" reply as far as edtFTP is concerned.

Hello,

I am having problem getting the right reply code if any at all;
If for any reason the file I am trying to ftp in does not exist on the remote server I still get a 200 reply code....

Is there article with more detail informations about getLastValidReply()

thanks you
below is a typical scenario:

ftp> cd /tmp
250 CWD command successful.
ftp> cd /tmp
---> CWD /tmp
250 CWD command successful.
ftp> get testing
---> PORT x,x,x,x,x,x
200 PORT command successful.
---> RETR testing
550 testing: No such file or directory.
ftp>

I am expecting the last valid return code to be 550 and not 200

Categories

...