chenxu Posted August 31, 2007 Posted August 31, 2007 I am using the UDF: http://www.autoitscript.com/forum/index.ph...ost&id=3314and I can connect to an ftp directly. Now I need to connect to anther ftp server via http proxy, I tried, failed, the code isCODE $dllop=DllOpen('wininet.dll') $outerFtp = _FTPOpen("gv", 1, "proxysh.zte.com.cn:80") ConsoleWrite($outerFtp & @CRLF) If @error == -1 Then ConsoleWrite("open ftp failed!" & @CRLF) EndIf $outerFtpConn = _FTPConnect($outerFtp, "ftp.myftp.com", "ghost", "ghost", 21) If $outerFtpConn == 0 Then ConsoleWrite("conn ftp failed!" & @CRLF) EndIf _FTPPutFile($outerFtpConn, "E:\AutoItWork\RemoteControl\CmdLine.txt", "cx\CmdLine.txt") If @error == -1 Then ConsoleWrite("put file failed!" & @CRLF) EndIf _FTPClose($outerFtp) DllClose($dllop)I can not just post the real ip of my ftp server here, sorry for that.here is the output of console:13369348conn ftp failed!put file failed!Can I connect to an FTP server via HTTP proxy? How?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now