How are you telling the server to redirect? You do know it's different
from mp1, right?

In mp2 you need to do:

my $location = 'http://foo.bar.baz';

$r->headers_out->{'Location'} = $location;
# Or use $r->err_headers_out->{'Location'} which you will have
# to do with any other headers you want to have sent with the
# redirect, such as cookies

return Apache::HTTP_MOVED_TEMPORARILY;
# Apache::REDIRECT still supported, this is the correct
# constant though.

On Wed, 5 Mar 2003, Mark James wrote:

> I'm having CGI redirect problems mp2 (cvs).


How are you telling the server to redirect? You do know it's different
from mp1, right?

In mp2 you need to do:

my $location = 'http://foo.bar.baz';

$r->headers_out->{'Location'} = $location;
# Or use $r->err_headers_out->{'Location'} which you will have
# to do with any other headers you want to have sent with the
# redirect, such as cookies

return Apache::HTTP_MOVED_TEMPORARILY;
# Apache::REDIRECT still supported, this is the correct
# constant though.

Now that I think about it, maybe you're using CGI.pm to do your redirect?
If so, maybe the code in CGI.pm has not been correctly updated?


Hope this helps.

- nick

-- 

~~~~~~~~~~~~~~~~~~~~
Nick Tonkin   {|8^)>

Reply via email to