Hi,
I have to go through a proxy server to access the internet. The proxy server requires user and password, also the ftp target does. Here is an example:
>>>
U:\>ftp ftp-proxy3.fe.internet.merck.com 
Verbindung mit ns1.fe.internet.merck.com wurde hergestellt. 
220-InterScan Version 3.7-Build_SOL_1070 $Date: 04/25/2002 11:54:0013$
(ns1.fe.internet.merck.com, get: N, put: N): Ready
220-Secure Gateway FTP server 
220- 
220- Welcome to the FTP-GATEWAY of the Merck Firewall Systems
220- -------------------------------------------------------- 
220- 
220- For any information about this service, see 
220- 
220- http://www.internet.merck.com/internet-access/ 
220- 
220- PLEASE REMEMBER: 
220- 
220- Files that you download from the Internet might contain viruses.
220- Before you use any software you are required to perform a virus scan
220-
220- Enter the information in the following format:
220- Name: remote_user@remote_host firewall_user 
220- Password: remote_password 
220- Account: firewall_password 
220-
220- Firewall Team
220- @work
220 Ready
Benutzer (ns1.fe.internet.merck.com:(none)): [b]anonymous@ftp.sun.com  abc2fe[/b]
331 Password required for destination user 'anonymous'.
Kennwort: [b]karl.napf@de.merck.com[/b]
332 Enter Password (use the 'account ' or 'quote acct ' command to respond)
Kennwort: [b]$6se5AbzQ356G[/b]
230-Connected to ftp.sun.com.
230 Guest login ok, access restrictions apply
<<<
I don't know how to hand over the proxy password and ftp password.
Here is the relevant snippet of my code:
ftpClient   = new FTPClient(ftpProxyHost);
ftpClient.login(ftpUser + "@" + ftpHost + " " + ftpProxyUser, ftpProxyPass);
Any ideas?