Jump to content

Recommended Posts

Posted

I am using the UDF: http://www.autoitscript.com/forum/index.ph...ost&id=3314

and I can connect to an ftp directly. Now I need to connect to anther ftp server via http proxy, I tried, failed, the code is

CODE

$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:

13369348

conn ftp failed!

put file failed!

Can I connect to an FTP server via HTTP proxy? How?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...