> 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? Cheers, Davide -- Posted via http://www.ruby-forum.com/.