cgi_redirect_uri (3) - Linux Man Pages

cgi_redirect_uri: send an HTTP 302 redirect response

NAME

cgi_redirect_uri - send an HTTP 302 redirect response

SYNOPSIS

#include <cgi/cgi.h>

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

ARGUMENTS

cgi - cgi struct
fmt - printf style format with args

DESCRIPTION

cgi_redirect_uri will redirect the user to another page on your site. This version takes the full URL, including protocol/domain/port/path. 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