From: Davide Benini Date: 2008-09-11T18:37:24+09:00 Subject: Re: How to check if a webpage exists > try > > # require 'open-uri' > # begin > # open "www.does.not.exist.sdadasdas.com", :proxy=>true > > replace the above line with > > puts open("www.does.not.exist.sdadasdas.com",:proxy=>true).read > > post the output again > > # p "i'm ok" #<-- ok codes here > # rescue => e > # p "sorry can't do" > # p "error is: #{e}" > # end The output is "sorry can't do" "error is: can't convert Hash into String" So now there is type conflict... Davide -- Posted via http://www.ruby-forum.com/.