Tobias Reif <tobiasreif / pinkjuice.com> 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