I would like to connect to a FTP from Java.
I have done this:
When the socket is connected to the FTP I get the 220 message from the socket´s inputstream (the welcome message from the FTP server).
Then I send this byte string through the sockets outputstream: “HELP”.
But nothing is received from the server after sending that byte string. The inputstream is still listening but it is totaly quiet.
Have I missed something important?
You need to send the CR/LF line terminator at the end of the command you send, e.g.