From: Pradeepta Swain Date: 2007-12-24T17:19:21+09:00 Subject: still getting error Steve Ross wrote: > On Dec 23, 2007, at 10:26 PM, Pradeepta Swain wrote: > >> Hi >> >> I am trying to get a webpage using this code >> >> require 'net/http' >> Net::HTTP.start('www.rubyinside.com') do |http| >> req = Net::HTTP::Get.new('/test.txt') >> puts http.request(req).body >> end > > req = http.get('/test.txt') > > You have to use the http connection to make the GET request. Still getting the same errors ,i am using ruby 1.8.4 in windows XP platform please help me out !can You please send the full code 2 make a connection -- Posted via http://www.ruby-forum.com/.