Name

send_redirect

Synopsis

$c ->send_redirect ( url, [code, [entity_body]] )

Description

Sends a redirect response to the client, with the location url, an absolute or a relative URL. The optional code argument should be one of the redirect status codes; the default is 301 Moved Permanently. An entity_body string can be sent as HTML that informs the user of the redirection.

Get Perl in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.