Hello I am using Apache Commons FTP Client and I want to show the FTP Commands that the FTP Client uses so like when I use changeWorkingDirectory it should show me the FTP Command that it used like: CODEOFCOMMAND CHD …..
or when I upload a File it should show me: CODEOFCOMMAND PUT ….
Is there any possibility to do this ?
You can find it in the Apache Commons Net FAQ :
Q: How do I debug FTP applications?
A: You can add a protocol command listener; for example: