From: Tom Reilly Date: 2005-02-22T10:52:41+09:00 Subject: Re: Net::HTTP The version of Ruby running on both machines is Ruby 1.8.2 <2004-12-25> [i386mswin32] The program does not throw an exception. It just hangs. Also I've tried going through network cards of different manufacture and it makes no difference. Also turning off the antivirus program and firewall programs make no difference either. Any recommendations as how go go about figuring out where it is hanging? Jamis Buck wrote: >On 08:28 Mon 21 Feb , Tom Reilly wrote: > > >>The folowing is a program from The Ruby Way page 441 >>#-------------------------------------- >>require 'net/http' >> >>begin >> h = Net::HTTP.new("www.ruby-lang.org",80) >> resp, data = h.get("en/index.html",nil) >>rescue => err >> puts "error: #{err}" >> exit >>end >> >>puts 'Received #{data.split.size} lines, #{data.size} bytes >>#------------------------------------- >> >>The program works fine on a Dell laptop running Windows 2000 professional >> >>It will not work on a laptop using an AMD athlon processor running >>Windows 2000 professional >> >> > >Can you be more specific? Do you get a raised exception? If so, what >is the exception? Also, what version of Ruby do you have running on >the AMD machine? > >- Jamis > > >