How to change tomcat http header maximum length limit?
如果客户端发送的HTTP首部长度超出了服务器的限制,会收到服务器返回的400错误信息。
Failed to load resource: the server responded with a status of 400 (Bad Request)
Tomcat5.5的官方配置参考手册包含对首部长度的说明:
配置项名称是:maxHeaderCount
说明原文:The maximum size of the request and response HTTP header, specified in bytes. If not specified, this attribute is set to 4096 (4 KB).
翻译:maxHeaderCount属性代表请求和响应的HTTP首部的最大长度,单位是字节。如果不指定,该属性将被设为4096(4K)。