Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.1k views
in Java FTP by
I'm receiving a 235 response code from the PBSZ 0 command and it seems to cause an exception. I'm traping the exception and continuing, things seem to work. I believe that the 235 is a valid response.

DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 17 Nov 2005 21:12:14.781 : ---> PBSZ 0
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 17 Nov 2005 21:12:14.843 : 235 PBSZ=0

com.enterprisedt.net.ftp.FTPException: PBSZ=0

1 Answer

0 votes
by
Try using the following line:
myFtpsClient.setStrictReturnCodes(false);

This loosens the implementation of the standard such that only the first digit of the return code is checked.

- Hans (EDT Support)

Categories

...