cgi_get_post_max, cgi_set_post_max - Get and set the internal POST_MAX parameter. |
#include <pthr_cgi.h> int cgi_get_post_max (void); int cgi_set_post_max (int new_post_max); |
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. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
pthrlib-3.0.3 |
new_cgi(3). |