0 votes
by (900 points)
edited

how to connect to FTP Server through FTPProxy ?

If some cases if two proxy server are present, like for internet Http Proxy and then on ftp server FTPProxy.

Any suggestion, Thanks in Adv.

Applies to: Rebex FTP/SSL

1 Answer

+1 vote
by (144k points)
edited

It's not currently possibly for a single instance of Ftp object to use two proxies like this, but there is a way - use Ftp object to connect to the FTP proxy through HTTP proxy, and instead of calling ordinary Login method, use a combination of Login/SendCommand/ReadResponse methods to instruct the proxy to connect and authenticate to the actual FTP server. For example, you might do something like this once connected to the FTP proxy through HTTP proxy.

by (900 points)
edited

Thanks....

...