Jump to content
Sign in to follow this  

connect to an ftp server via http proxy

Recommended Posts

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



$outerFtp = _FTPOpen("gv", 1, "proxysh.zte.com.cn:80")

ConsoleWrite($outerFtp & @CRLF)

If @error == -1 Then

ConsoleWrite("open ftp failed!" & @CRLF)


$outerFtpConn = _FTPConnect($outerFtp, "ftp.myftp.com", "ghost", "ghost", 21)

If $outerFtpConn == 0 Then

ConsoleWrite("conn ftp failed!" & @CRLF)


_FTPPutFile($outerFtpConn, "E:\AutoItWork\RemoteControl\CmdLine.txt", "cx\CmdLine.txt")

If @error == -1 Then

ConsoleWrite("put file failed!" & @CRLF)




I can not just post the real ip of my ftp server here, sorry for that.

here is the output of console:


conn ftp failed!

put file failed!

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

Share this post

Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...