Is there a custom parameter that controls the maximum size / length of an HTTP message in IIS 7, IIS7.5 +?

I have a client with intermediate and production systems with the same application code in both. The code is classic ASP, but I don’t see part of the problem in this. A particular web application page includes a form in which an HTML string is edited in a text field. This code worked for years without problems and works for other clients without problems. There is no problem with a certain HTML template when posting to the server when they are sent to the server, but upon receipt they get the response "HTTP / 1.0 400 Bad request".

Wikipedia http://en.wikipedia.org/wiki/List_of_HTTP_status_codes lists HTTP 400 lists as "Request could not be completed due to bad syntax." However, other HTML lines can be edited and published without production problems, from which I conclude that this is unlikely to be a real problem.

I know that IIS has improved over the years with various protections and limitations to prohibit the use of buffer overflows, etc. I wonder if there is a byte length limit on the size of the message. A search on the Internet raises many similar questions about PHP, Apache, etc., but nothing is obvious to IIS, and similar questions in stackoverflow are not close, but not so close as to give an answer.

As long as I have a real and current problem with this, this post should also partially become a beacon for others with the same problem.

+4
source share
1 answer

Of course, the default value is 4096 KB, i.e. 4 MB, look at maxRequestLength in the web.config file

http://support.microsoft.com/default.aspx?scid=kb;EN-US;295626

+2
source

Source: https://habr.com/ru/post/1387163/


All Articles