Reputation: 101
I have a client with staging and production systems with identical app code in both. The code is classic ASP but I do not see this as part of the issue. A specific page of the web app includes a form in which an HTML string is being edited in a textarea. This code has worked for years without issue and operates for other clients without a problem. With a specific HTML template, on staging there is no issue when they post to the server, but on production the receive a 'HTTP/1.0 400 Bad request' response.
Wikipedia http://en.wikipedia.org/wiki/List_of_HTTP_status_codes lists lists HTTP 400 as 'The request cannot be fulfilled due to bad syntax'. However other HTML strings can be edited and posted without issue on production from which I deduce that this is unlikely to be the real issue.
I know that IIS has been improved over the years with various defences and limits to deny buffer overflow exploits etc. I wonder if there is a byte length restriction on post size. Searching the web brings up many similar questions about PHP, Apache, etc, but nothing obvious re IIS, and the similar questions in stackoverflow are close but not so close as to provide an answer.
Whilst I have genuine and current issue with this, this post is also partly to make a beacon for others with the same issue.
Upvotes: 4
Views: 8829
Reputation: 34269
sure is the default is 4096KB ie 4MB, look at maxRequestLength in the web.config
http://support.microsoft.com/default.aspx?scid=kb;EN-US;295626
Upvotes: 2