From: Thomas Fini Hansen Date: 2003-11-19T07:43:23+09:00 Subject: Re: Access ftp-server through proxy On Mon, Nov 17, 2003 at 10:24:38AM +0900, Kristian S�rensen wrote: > I have tried with the following (including variants of it), but can't > get it to work: > ----- > #!/usr/bin/env ruby > require 'net/http' > > Net::HTTP.start('ftp://anonymous:anonymous@ftp.sunsite.dk', 21) { |http| > response, data = http.get('/pub/gnu/mc/mc-4.5.55.tar.gz', nil) > > File.open("mc.tgz", "wb") { |f| > f.write(data) > } > } > ----- Tried this? Net::HTTP.start('the.proxy.com', 80) { |http| response, data = http.get('ftp://anonymous:anonymous@ftp.sunsite.dk" + "/pub/gnu/mc/mc-4.5.55.tar.gz', nil) -- Thomas beast@system-tnt.dk