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” 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
end

Now it doesn’t. What am I missing?

Hal

It works under Linux with 1.7.2, too.

···

On Tue, May 20, 2003 at 02:33:06PM +0900, Hal E. Fulton wrote:

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.


_ _

__ __ | | ___ _ __ ___ __ _ _ __
'_ \ / | __/ __| '_ _ \ / ` | ’ \
) | (| | |
__ \ | | | | | (| | | | |
.__/ _,
|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

No, that’s wrong too. Now there’s a race condition between the rm and
the mv. Hmm, I need more coffee.
– Guy Maor on Debian Bug#25228