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
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:password@host: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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs