From: Ned Konz Date: 2001-09-20T06:51:31+09:00 Subject: [ruby-talk:21414] Net::HTTP.get not returning data (1.7.1, ok in 1.6.4) Almost directly from the Pickaxe book: require 'net/http' h = Net::HTTP.new('www.pragmaticprogrammer.com', 80) resp,data = h.get('/index.html', nil) puts resp.code puts data # data is nil However, data is returned as nil. If I use a block after h.get I see data. What's going on here? I'm using Ruby from the CVS: $ ruby -v ruby 1.7.1 (2001-09-08) [i686-linux] Note that this works OK in ruby 1.6.4 . -- Ned Konz currently: Stanwood, WA email: ned@bike-nomad.com homepage: http://bike-nomad.com