httpSetMaxContentLength()

Sets the maximum length of a POST request.

Synopsis

int httpSetMaxContentLength( uint length);

Parameter

Parameter Description
length The maximum length to be set.

Return value

Returns 0 on success, otherwise -1.

Error

Errors can be queried with getLastError(). Errors can be:

  • Too few arguments

  • No httpServer() is installed

  • httpSetMaxContentLength() is called from a different script than the httpServer() was installed from

  • The given web resource is not registered

Description

The function httpSetMaxContentLength() sets the maximum length (in bytes) of a POST request.

The default value for the maximum content length is 100kB.

Assignment

CTRL PlugIn

Availability

CTRL