From: Michael Fellinger Date: 2008-09-12T00:40:14+09:00 Subject: Re: How to check if a webpage exists On Thu, Sep 11, 2008 at 10:34 PM, Davide Benini wrote: > >> >> You can use something really low level: >> http://p.ramaze.net/1960 > > Hi Micheal, the low-level solution you've linked to doesn't seem to work > at all; I changed the code and tested http://www.google.com and I get > "what to do when it doesn't work". > Yours would actually be the solution I like best; does it work on your > system? Sorry, i should test last-minute changes... http://p.ramaze.net/1961 but please read and try to understand the code, it's no use if you're simply copy&pasting solutions. ^ manveru > Cheers, > Davide > >> Note that you can use the status to determine what happened... see the >> http rfc for more information on the status codes. >> http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1.1 > > -- > Posted via http://www.ruby-forum.com/. > >