MAXPOSTDATASIZE

Specifies the maximum size of the content body sent in POST and PUT requests from the client to the server. This can be used to protect the server against Denial of Service (DOS) attacks.

<init-param>
  <param-name>
MAXPOSTDATASIZE </param-name>
  <param-value>
KiloBytes | -1 </param-value>
</init-param>

Default value if omitted: 2048 (2 MB)

Values

  • KiloBytes—number of kilobytes
  • -1 —disable this size check

Description

For the WRD servlet, it specifies the maximum size of the content body of the POST and PUT requests.

For the SRD servlet, it specifies the maximum size of the content body (that is, the SOAP envelop) of the POST request.

If the size of data in a request is larger than the specified maximum, an HTTP error is returned with HTTP status code 400 in the response, and the WRD error (400 URD_BAD_REQUEST) is returned and is displayed in a red page.

Related Topics