From: ts Date: 2003-08-16T00:04:05+09:00 Subject: Re: Help with IO Code >>>>> "G" == =?iso-8859-1?q?Ged=20Byrne?= writes: G> resp, data = h.get('/index.html', nil) Well, the problem is that Net::HTTP#get has changed between 1.6 ("Programming Ruby") and your version of ruby 1.8 # In version 1.1 (ruby 1.6), this method returns a pair of objects, # a Net::HTTPResponse object and the entity body string. # In version 1.2 (ruby 1.8), this method returns a Net::HTTPResponse # object. G> puts resp.message #I added this G> puts data #And this puts resp.body G> if resp.message == "OK" G> #Spam assasin didn't like the Img tag in the re. G> data.scan(/###/) { |x| puts x } resp.body.scan(/###/) { |x| puts x } G> end Guy Decoux