I have implemented APACHE Mina server to connect to my local FTP client i.e. Command prompt, which is working fine. Now I want to send this FTP request i.e. FTP commands to an http proxy server (Apache http server) as an http request which will further connect to an FTP server.
I have used Apache common net FTPHTTP client class but I don't know how to implement the whole logic. Any link or example will be helpful.
My code is as follow:s
FTPClient ftpclient = new FTPHTTPClient("HTTPProxy",int port); //connecting to Apache HTTP server
boolean status = ftpclient.isConnected //This is returning me false
ftpclient.connect("FTPserver",int port); //connecting to FTP server
ftpclient.login("userId","userPassword"); //Login into FTP server
status = ftpclient.isConnected //This is returning me true
Is this connection is is an HTTP connection i.e. Http tunneling via Connect Http method ? my exact requirement is :- Ftp client <---> Ftp local server <----> Http server <---> Ftp server