Open digg.com time-out


#1

with
require ‘open-uri’

I get a time-out error for:

open(“http://www.digg.com”)

and any other digg.com pages (like for http://digg.com/rss/index.xml)

If I use any other url everything works fine. (and http://www.digg.com
is available in the browser)

Any idea?

Thanks


#2

On 3/12/07, rosoft2001 removed_email_address@domain.invalid wrote:

If I use any other url everything works fine. (and http://www.digg.com
is available in the browser)

The other day I noticed the same, but using the curb bindings for
libcurl.

The connection just hangs. It’s good to know this isn’t a curb bug, at
least!

jeremy


#3

I found it:

just use

open(url.to_s, “User-Agent” => “Mozilla/4.0 (compatible; MSIE 7.0;
Windows NT 6.0)” )

probably they reject requests without an User-Agent…