require 'open-uri'f = open('http://www.rubyinside.com/test.txt')puts f.content_typeputs f.charsetputs f.last_modified