You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Swoboda, Tomasz" <ta...@chevychasebank.net> on 2005/12/08 22:26:39 UTC
net.ftp.FTPClient
Hi,
I have a situation where I need to use the FTPClient over the proxy server, to get a file from an outside of the firewall.
The following win NT script works fine:
open 10.100.10.10 // proxy server address
user_id // proxy automatically prompts for user: user_id is the only req.. input (no pass needed)
// now I am connected to the proxy server
// the server replies : 230 [002-0024] Specify Remote Destination with: quote site hostname
// script continues...
quote site 100.100.10.10 // remote server on which the target file is located
user remote_user_id // provide remote user_id
my_pass // provide remote password
cd /target_dir/ // change dir
get my_file.txt // get my file
bye // terminate
Again - this script works fine when used from the ftp command prompt on NT. I get my file OK.
I have successfully used net.ftp.FTPClient before, but on the intranet only.. I spent a couple of hours trying to convert this script to FTPClient calls, but I can't get pass the "quote site 100.100.10.10" input and the prompt: "230 [002-0024] Specify Remote Destination with: quote site hostname" keeps on returning to me... I'd truly appreciate all ideas!!!
- Tom
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error
please notify the system manager.
This footnote confirms that this email message has been scanned
for the presence of computer viruses.
Chevy Chase Bank
**********************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org