open call works fine in irb but not through webrick server

require 'rss/1.0' require 'rss/2.0' require 'open-uri'

source = "something.com" # url or local file content = "" # raw content of url will be loaded here open(source,:proxy => nil) do |s| content = s.read end rss = RSS::Parser.parse(content, false)

puts "Root values" print "RSS title: ", rss.channel.title, "\n"

irb != rails

so try this script via script/console

irb is interactive ruby console, so libraries etc could be different for ruby and for rails

if this will work in script/console, then it will work via mongrel/webrick as well

tm

Karika wrote:

I tried using script/console It still give me same error ...