Return to Snippet

Revision: 9720
at November 18, 2008 19:11 by eugegim


Initial Code
require 'net/http'
require 'uri'

url = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.start(url.host, url.port) do |http|
  http.get('/index.html')
end
puts res.body

Initial URL

                                

Initial Description

                                

Initial Title
Ruby GET Request

Initial Tags
textmate, ruby, Net

Initial Language
Other