The m_nMaxPostSize data member is a public variable that
specifies the maximum size of the request data that may be submitted
by a client with a POST command. If the amount of request data
submitted to the server exceeds this limit, the server will return a
413 error to the client and the connection will be closed. If this
member has a value of zero, the server will permit the client to
submit up to 4 MB (4,194,304 bytes) of data. The minimum value is 100
KB (102,400 bytes) and the maximum value is 100 MB (104,857,600
bytes). Changing the value of this data member does not have an
effect on an active instance of the server.
The default limit of 4 MB should be sufficient for most
applications. One situation where you may need to increase this value
is if you expect the client to upload large files using the POST
command. Increasing this limit will potentially increase the amount of
virtual memory that the server will allocate. Note that this value
does not limit amount of data that can be uploaded using the PUT
command.