From: Tobias Reif Date: 2001-07-31T00:43:27+09:00 Subject: [ruby-talk:18815] Re: Net::HTTP (downloading an image) here is one downloaded file (view with IE): http://www.pinkjuice.com/temp/ruby/new.gif > > ----------------------------- > > require 'net/http' > > > > h = Net::HTTP.new('www.pragmaticprogrammer.com', 80) > > resp, data = h.get('/images/title_main.gif', nil) > > if resp.message == "OK" > > outfile = File.new("title_main.gif","w") > > outfile.write(data) > > end > > ---------------------------- > > > > I get something like a fraction of the original image. -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.htm