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