From: Tom Robinson Date: 2002-09-03T21:42:17+09:00 Subject: cgi redirect in perl, this is easy: my $cgi = new CGI; print $cgi->redirect("http://foo.bar.baz/");' gives: Status: 302 Moved location: http://foo.bar.baz/ in ruby there is no CGI#redirect, the only way i could think of was: print cgi.header({'Status' => '302 Moved', 'location' => 'http://foo.bar.baz/'}) gives: Content-Type: text/html Status: 302 Moved location: http://foo.bar.baz/ nil irb(main):004:0> but it still prints the content-type header. any good way around this without doing it manually? i know there's a solution for mod_ruby, but cgi.rb really should have a redirect method as well i think. -- tom@alkali.spamfree.org remove 'spamfree.' to respond