cgi_redirect (3) - Linux Manuals

cgi_redirect: send an HTTP 302 redirect response

NAME

cgi_redirect - send an HTTP 302 redirect response

SYNOPSIS

#include <cgi/cgi.h>

void cgi_redirect (CGI *cgi, const char *fmt, ...)
                   ATTRIBUTE_PRINTF(2,3);

ARGUMENTS

cgi - cgi struct
fmt - printf style format with args

DESCRIPTION

cgi_redirect will redirect the user to another page on your site. This version takes only the path portion of the URL. As with all printf style commands, you should not call this with arbitrary input that may contain % characters, if you are forwarding something directly, use a format like cgi_redirect (cgi, "%s", buf)

RETURN VALUE

None