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” sdate@everestkc.net
To: hal9000@hypermetrics.com
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” hal9000@hypermetrics.com 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
endNow it doesn’t. What am I missing?
Hal