The MaxResponseHeadersSize property gets or sets the maximum allowed size, in bytes, of an HTTP response header.
HRESULT get_MaxResponseHeadersSize(
long* plHeaderSize );
HRESULT put_MaxResponseHeadersSize(
long lHeaderSize );
Parameters
- plHeaderSize
- Pointer to a variable that is set on return to a 32-bit integer specifying the maximum allowed size, in bytes, of an HTTP response header.
- lHeaderSize
- A 32-bit integer that specifies the maximum allowed size, in bytes, of an HTTP response header.
Return Values
These property methods return S_OK if the call is successful; otherwise, they return an error code.
Remarks
This property is read/write. Its default value is 32,768, and it cannot be set to a value less than 1.
The limit set by this property is enforced only when additional memory must be allocated for an HTTP response header. The limit is not enforced if an HTTP response header can be accommodated in the buffer initially allocated for it.
After the value of this property has been modified, the change must be written to persistent storage by calling the Save method, and the Microsoft Firewall service must be restarted for the change to take effect. For more information about restarting the Firewall service to apply changes, see Restarting Services After Configuration Changes.