Task

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

There is a separate task for HTTPS Requests.




 
(defn get-http [url]
  (let [sc (java.util.Scanner. 
	    (.openStream (java.net.URL. url)))]
    (while (.hasNext sc)
      (println (.nextLine sc)))))
(get-http "http://www.rosettacode.org")
 