From: "Hal E. Fulton" Date: 2003-05-20T14:33:06+09:00 Subject: Net::HTTP#get ? No... but FYI I've found that it works under Linux with 1.6.8, but not under Windows with 1.7.3 -- these are my only data points at the moment. Thanks, Hal > ----- Original Message ----- > From: "Shashank Date" > To: > Sent: Tuesday, May 20, 2003 12:16 AM > Subject: Re: Net::HTTP#get ? > > > > Worked for me after adding: require 'net/http' (obviously) > > > > Are you behind a firewall ? > > > > "Hal E. Fulton" wrote in message > > news:001001c31e85$44bfa5c0$0300a8c0@austin.rr.com... > > > This code fragment used to work for me: > > > > > > begin > > > h = Net::HTTP.new("www.whatever.com", 80) > > > resp, data = h.get("/", nil) > > > rescue => err > > > puts "Error: #{err}" > > > exit > > > end > > > > > > Now it doesn't. What am I missing? > > > > > > Hal > > > > > > > > > > > >