From: Tobias Reif Date: 2001-07-31T00:22:44+09:00 Subject: [ruby-talk:18810] Net::HTTP (downloading an image) Hi; when running the code below (as an exercise while learning ruby) ----------------------------- 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. How to properly download an image? Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.htm