Best way to connect to ftp server through proxy?

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

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

open(“somefile.zip”,“wb”).write(open(“ftp://username:[email protected]:port/remotefile.zip”,
:proxy=>“http://proxyhost:proxyport”).read)

-Shane

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs