best way to connect to ftp server through proxy?

S

Shane Witbeck

[Note: parts of this message were removed to make it a legal post.]

The only docs I found on this is using a SOCKS proxy. What's the best way to
connect to an FTP server through a non-SOCKS proxy?


-Shane
 
S

Shane Witbeck

[Note: parts of this message were removed to make it a legal post.]

Replying to my own post in case anyone else needs the code (all of one
line)...

open("somefile.zip","wb").write(open("ftp://username:password@host:port/remotefile.zip",
:proxy=>"http://proxyhost:proxyport").read)

-Shane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top