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.