Home  Contents

cgi:redirect

Httpd/CGI Core4 Lua Event System

SYNOPSIS

cgi:redirect(url [, getlist])

DESCRIPTION

Sends a http 302 redirect response. The client is instructed to get the response from another URL.

The destination is given in the variable url. The getlist allows adding parameters to the URL to form a get request. See cgi:mkurlpath() for information on how url and the getlist are put together to form the destination URL.

The redirect is works only if no data has been sent to the client yet.

SEE ALSO