Article ID: 810957 - View products that this article applies to.
If data that is longer than 49,155 bytes is posted to Microsoft Internet Information Services (IIS) 5.0 or IIS 5.1, and the receiving application does not completely read the data, IIS returns the following HTTP error message to the client:
400 - Bad Request
When IIS receives data that is to be passed to an Internet Server API (ISAPI) extension such as Active Server Pages (ASP), IIS reads ahead a certain number of bytes and then puts this data in a buffer. Any additional data remains in the network socket and waits to be read. If the receiving application does not read the additional data when the application finishes processing, the remaining data is interpreted as the start of another request from the client.
To resolve this problem, make sure that the application reads all the data that the client sends. For example, the data can be read in ASP by using the 'Request.BinaryRead(Request.TotalBytes)' method.
The IIS UploadReadAheadSize metabase property determines the amount of data that IIS reads ahead and buffers for a request for an ISAPI extension. By default, this value is 49152.
Article ID: 810957 - Last Review: November 21, 2006 - Revision: 1.1