From: Michael Fellinger Date: 2008-09-12T01:10:57+09:00 Subject: Re: How to check if a webpage exists On Fri, Sep 12, 2008 at 12:58 AM, Davide Benini wrote: > >> but please read and try to understand the code, it's no use if you're >> simply copy&pasting solutions. >> > > Hi Micheal, > sorry if you got the impression I am just copying and pasting. I had got > the gist of your script rationale, and I tried to modify this and that, > but I am probably too of a beginner to debug it by myself. At any rate, > thanks for your help so far. > > Anyway, for some reason the script does not work yet. Working pages > (like repubblica.it or corriere.it, italian most popular newpaper > websites) output a 400 status, and the script fails. Moreover, if I > insert a url without a www (like for my own website, > http://davidebenini.it), the connection doesn't even start. > Why is that? Do you think there's a problem with the request format? I extended the format, so this should work: http://p.ramaze.net/1962 > Cheers, > Davide > -- > Posted via http://www.ruby-forum.com/. > >