apache - FTP client connection to HTTP server -
I implemented the APH Meena server to connect to my local FTP client i.e. Command Prompt, which is working fine. Now I want to send this FTP request to an HTTP proxy server (Apache HTTP Server) as an HTTP request, which will connect to an FTP server further.
I have used the Apache general net FTPHTTP client class but I do not know how to apply the whole logic Any links or examples will be helpful.
My code is as follows: s
FTPClient ftpclient = new FTPHTTPClient ("HTTPProxy", int port); // Connecting to Apache HTTP Server Boolean Status = ftpclient.isConnected // This is returning me the wrong ftpclient.connect ("FTPserver", int port); // Connecting to FTP server ftpclient.login ("userId", "userPassword"); // Login to FTP server status = ftpclient.isConnected // This is returning me true Is this connection a HTTP connection? HTTP tunnel through HTTP connectivity? My exact requirement is: - FTP client & lt; ---> FTP Local Server & lt; ----> HTTP server & lt; ---> FTP server
Comments
Post a Comment