From: Premshree Pillai Date: 2004-12-30T21:27:50+09:00 Subject: Re: verifying a network connection On Thu, 30 Dec 2004 19:11:45 +0900, Thomas Metz wrote: > Josef 'Jupp' Schugt wrote: > > Premshree Pillai wrote: > > > >> require 'net/http' > >> begin > >> resp = Net::HTTP.get_response(URI.parse("http://some.url")) > >> # do stuff > >> rescue > >> print "No Network connection" > >> end > > > > > > Your solution *may* solve the problem that Thomas has but it does not > > fit the one he actually described. > > Yes, I described my problem not very precise, but Premshree's solution > was exaxtly, what I was looking for. I'm psycic -- I can predict questions. :D > > Thank you all for your suggestions. > > Thomas > > -- Premshree Pillai http://www.livejournal.com/~premshree