--- Minero Aoki <aamine / loveruby.net> wrote: > Hi, > > In mail "Re: Trying to use Net::HTTP sample > program from "The Ruby Way"" > Ludwigi Beethoven <aix_tech / yahoo.com> wrote: > > > > > h = Net::HTTP.new("www.ruby-lang.org", 80) > > > > resp, data = h.get("/en/index.html", nil) > > > > > > What version of ruby are you using? > > > If it is ruby 1.8, try latest version. > > > The version, ruby -v, that I am using is: > > > > 1.7.2 under MS/Windows. > > Ah, I'm sorry. "ruby 1.8" means "devlopping branch > of ruby". > 1.7.x and 1.8.0 is both developping branch, you need > to update > ruby. > > Reason: > > * net/http is incompatible with the one included > in ruby 1.6. > Net::HTTP#get returns [HTTPResponse, String] in > 1.6, > but same method returns the single HTTPResponse > object > in 1.7.x and 1.8. > > * But for backward compatibility, > HTTPResponse#to_ary is > added. So you can use old code without > modifying code. > This modification is done in ruby 1.8, you need > update > ruby to 1.8. > > Regards, > Minero Aoki > I upgraded to 1.8.0 and I am still getting the same error. I am not sure what's going wrong with what appears to be a simple program. ruby -v returns: ruby 1.8.0 (2003, 05, 26)[i386-mswin32] __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com