Task

Access and print a URL's content (the located resource) to the console.

There is a separate task for HTTPS Requests.




 
require 'open-uri'
 
print open("http://rosettacode.org") {|f| f.read}
 