If you're using POE::Component::Server::HTTP, you have to
set the 302 code in the response object, and then return
RC_OK from your handler. The component uses the return
values RC_OK, RC_DENY (not handled), RC_CONTINUE (show this
request to the next matching handler).
What the browser gets is the
sub handler {
my ($request, $response) = @_;
$response->code(302);
$response->header('Location' => 'http://somewhere/blah');
return RC_OK;
}
On 4/22/05, Mathieu Longtin <[EMAIL PROTECTED]> wrote:
>
> If you're using POE::Component::Server::HTTP, you have to
> set the 302 code in the response obj
Not really a question but just sharing some info
I used the suggestion by David to set the "Location" in the header and
the 302 status code. It turns out the problem was the HTTP status code
I was returning from the content handler function was hard coded to be
RC_OK. If I set the status cod