Connect to FTP server by Proxy Server (General questions)
I want to connect to a FTP server by a FTP proxy using following code.
{
m_Ftp.SetHostname( FTP.Server.com );
m_Ftp.SetLogin( username );
m_Ftp.SetPassword( Password );
m_Ftp.SetProtocol(0); //0 FTP protocol
m_Ftp.SetPort(21);
m_Ftp.SetPassive(true);
m_Ftp.SetProxyType(102); //USER RemoteID@RemoteHost
m_Ftp.SetProxyHostname( FTP.proxy.Server.com );
m_Ftp.SetProxyPort(21);
m_Ftp.SetProxyLogin ( username ); //Same user and password as connect to the FTP server.
m_Ftp.SetProxyPassword( Password );
}
The FtpDLX can not connect to the server, giving a response as CONNECTED ERROR: Invalid username or password reported by server. But I use same setting in the FileZilla, FileZilla do can connnect to the server. Please tell me if there something wrong with the source code. And please tell me is there any method to get the raw reponse message from the FTP server?
Complete thread:
- Connect to FTP server by Proxy Server - zhou, 2006-08-11, 09:34
- Re: Connect to FTP server by Proxy Server - wodAlan, 2006-08-11, 10:03
- Re: Connect to FTP server by Proxy Server - wodSupport, 2006-08-11, 10:52
- Re: Connect to FTP server by Proxy Server - wodAlan, 2006-08-11, 10:03