Cho Cogo
2008-Feb-11 05:40 UTC
[Mechanize-users] [ask] how to make mechanize download using Net::SSH SOCKS5
I have a local ssh session, how can i tell mechanize to use that connection, instead standard net::http. I''ve tried to setup the proxy but it wouldnt work. Thanks. WyNst
Aaron Patterson
2008-Feb-11 19:03 UTC
[Mechanize-users] [ask] how to make mechanize download using Net::SSH SOCKS5
On Mon, Feb 11, 2008 at 12:40:14PM +0700, Cho Cogo wrote:> I have a local ssh session, how can i tell mechanize to use that > connection, instead standard net::http. I''ve tried to setup the proxy > but it wouldnt work.I don''t understand. Are you using ssh to forward a port? -- Aaron Patterson http://tenderlovemaking.com/
Cho Cogo
2008-Feb-26 11:23 UTC
[Mechanize-users] [ask] how to make mechanize download using Net::SSH SOCKS5
On 2/11/08, Cho Cogo wrote:> I have a local ssh session, how can i tell mechanize to use that > connection, instead standard net::http. I''ve tried to setup the proxy > but it wouldnt work.Hi, after a bit googling I found the solution.. ------ For a SOCKS5 proxy, get SOCKSify-Ruby: git clone http://cthulhu.c3d2.de/~astro/git/socksify-ruby.git/ This is a small drop-in to redirect any Ruby TCPClient connect through a SOCKS5 proxy server. http://cthulhu.c3d2.de/~astro/gitweb/?p=socksify-ruby.git;a=tree -------