Haris Bogdanovic wrote:
> I tried this:
>
> cgi=CGI.new
> cgi.header('status'=>'302 moved', 'location'=>'my_page.rb')
> or
> cgi.header('status'=>'REDIRECT', 'location'=>'my_page.rb')

You need both a '302' line and a 'Location' header. (btw, according to 
refs the url needs to be absolute.)

>
> Maybe someone knows why this doesn't work ?

Why did you try 'REDIRECT'?

You simply guessed?

Then why didn't you guess 'Boozoonga'? or 'Kalibula'?

It's nice to invent things, but don't expect your browser to understand 
you.

Peter Jones wrote:
> The browser is doing the right thing.

Yes, but Haris's is a very valid wish. The Drupal CMS redirects after a 
form post, and I think it's indeed a good thing to do.
-- 
Posted via http://www.ruby-forum.com/.