From: vart@... Date: 2001-09-26T05:00:40+09:00 Subject: [ruby-talk:21676] Re: Newbie: Help with Ruby web programming In article <20010924181304.C10671@mancala.semo.net>, Aaron Malone says... > >On Tue, Sep 25, 2001 at 07:51:22AM +0900, vart@mailandnews.com wrote: > >Have you looked into the Net::HTTP class? Some simple code to see if >something exists or not could run something like: > >require 'net/http' >h = Net::HTTP.new('munge.net') >begin > resp, data = h.get('/doesntexist?foo=bar') >rescue Net::ProtoFatalError => splat > print "Are you sure about that? -- " + splat >end > > Thanks! But is there something similar to a forward or redirect (a la JSP) that redirects to a particular URL? I couldn't find a method for that in the Net::HTTPResponse object. vart