Snippets has posted 5883 posts at DZone. View Full User Profile
url = "http://www.whatever.com/whatever.txt"
r = Net::HTTP.get_response(URI.parse(url).host, URI.parse(url).path)
r.code = 200 | 404 | 500, etc
r.body = *text of page*
r = Net::HTTP.get_reponse( URI.parse( url ) )
Discover best practices and the most useful tools for building the ideal integration architecture.
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...