From: Matthew Harris Date: 2007-12-24T19:32:02+09:00 Subject: Re: still getting error Pradeepta Swain wrote: > 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 > I've run your code on Ruby 1.8.6 on OS X, so this could either be a net/http issue in 1.8.4, or a Windows issue, or a net/http issue with Windows. Sorry I can't verify further. -- Matthew Harris http://matthewharris.org