steveP
2007-01-24 15:11:33 UTC
I need to created a script to connect and download files from a ftp
server --- simple ?
the issue is i am behind a bluecoat proxy and i can connect manully but
not via a script, can anyone help me.
Here is what i have so far
type in manually and works --
C:\>ftp 172.x.x.x
Connected to 172.x.x.x
220 Blue Coat FTP Service
User (172.x.x.x:(none)): ***@Remoteftpsite.com Proxyusrname
331 Enter password.
Password:
332 Enter proxy password.
Password:
230 User Username logged in. Access restrictions apply.
ftp> dir
200 PORT command successful.
150 File status okay; about to open data connection.
total 6340
------------------------------------------------------------
Here is my script and does not work
I have a batch file that contains
FTP -i -n -s:"D:\FTPCMDS1.TXT"
details of FTPCMDS1.TXT file >
open 172.x.x.x
user ***@Remoteftpsite.com Proxyusrname
ftp site password -- actual password hidden
proxy password -- actual password hidden
binary
mget *
BYE
------------------------------------------------------------
Results of running my script
ftp> open 172.x.x.x
Connected to 172.x.x.x
220 Blue Coat FTP Service
ftp> user ***@Remoteftpsite.com Proxyusrname
331 Enter password.
332 Enter proxy password.
530-User Access denied.
530-
530-Usage: USER ***@hostname proxyusername
530- PASS password
530 ACCT proxypassword
Login failed.
ftp>
ftp>
Invalid command.
ftp> binary
200 Command okay.
ftp> mget *
User access denied.
530 User access denied.
Cannot find list of remote files.
ftp> BYE
200 Command okay.
server --- simple ?
the issue is i am behind a bluecoat proxy and i can connect manully but
not via a script, can anyone help me.
Here is what i have so far
type in manually and works --
C:\>ftp 172.x.x.x
Connected to 172.x.x.x
220 Blue Coat FTP Service
User (172.x.x.x:(none)): ***@Remoteftpsite.com Proxyusrname
331 Enter password.
Password:
332 Enter proxy password.
Password:
230 User Username logged in. Access restrictions apply.
ftp> dir
200 PORT command successful.
150 File status okay; about to open data connection.
total 6340
------------------------------------------------------------
Here is my script and does not work
I have a batch file that contains
FTP -i -n -s:"D:\FTPCMDS1.TXT"
details of FTPCMDS1.TXT file >
open 172.x.x.x
user ***@Remoteftpsite.com Proxyusrname
ftp site password -- actual password hidden
proxy password -- actual password hidden
binary
mget *
BYE
------------------------------------------------------------
Results of running my script
ftp> open 172.x.x.x
Connected to 172.x.x.x
220 Blue Coat FTP Service
ftp> user ***@Remoteftpsite.com Proxyusrname
331 Enter password.
332 Enter proxy password.
530-User Access denied.
530-
530-Usage: USER ***@hostname proxyusername
530- PASS password
530 ACCT proxypassword
Login failed.
ftp>
ftp>
Invalid command.
ftp> binary
200 Command okay.
ftp> mget *
User access denied.
530 User access denied.
Cannot find list of remote files.
ftp> BYE
200 Command okay.