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
on 2007-03-13 03:48
on 2007-03-13 04:20
On 3/12/07, rosoft2001 <email@example.com> 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
on 2007-03-14 16:25
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...