[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

best way to connect to ftp server through proxy?

Shane Witbeck

8/20/2008 8:14:00 PM

[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

1 Answer

Shane Witbeck

8/21/2008 2:55:00 PM

0

[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


On Wed, Aug 20, 2008 at 4:14 PM, Shane Witbeck <shane@digitalsanctum.com>wrote:

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