Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
224 views
asked in FAQ: edtFTPj/PRO by (153k points)
Connecting to Filezilla using implicit mode FTPS works fine. But when a directory listing or file transfer is attempted, Filezilla returns the error '521 PROT P required'.

1 Answer

0 votes
answered by (153k points)
 
Best answer

Filezilla server is a bit unusual in that it requires the PBSZ 0 and PROT P commands (which are mandated in explicit mode FTPS) to be called for implicit FTPS. Most servers don't. There is no RFC for implicit mode, so there is no right or wrong way.

Using SecureFileTransferClient, you'll need to call these commands immediately after logging in: 

client.executeCommand("PBSZ 0");
client.executeCommand("PROT P");

...