cgi_get_post_max

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION
SEE ALSO

NAME

cgi_get_post_max, cgi_set_post_max - Get and set the internal POST_MAX parameter.

SYNOPSIS

#include <pthr_cgi.h>

int cgi_get_post_max (void);
int cgi_set_post_max (int new_post_max);

DESCRIPTION

These functions get and set the internal POST_MAX parameter which can be used to limit the size of POST method requests which this library will handle. If set to a non-negative integer, then POST requests will be limited to the number of bytes given. The default is -1 (unlimited) which can leave the server open to denial of service attacks.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

pthrlib-3.0.3

SEE ALSO

new_cgi(3).