From: Dave Thomas Date: 2001-07-31T00:33:26+09:00 Subject: [ruby-talk:18812] Re: Net::HTTP (downloading an image) Tobias Reif writes: > ----------------------------- > 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. I just tried this and it worked fine here. You should get a 273x123 image with the purple shape and two small green borders: one to the right, the other on the bottom. Dave