【发布时间】:2015-07-08 11:03:41
【问题描述】:
Apache tomcat server.xml 中的 maxHttpHeaderSize 和 HttpServletRequest/HttpServletResponse 中的 content-length 有什么区别。
maxHttpHeaderSize - The maximum size of the request and response HTTP header, specified in bytes. If not specified, this attribute is set to 4096 (4 KB).
content-Length -The Content-Length entity-header field indicates the size of the entity-body, in decimal number of OCTETs, sent to the recipient or, in the case of the HEAD method, the size of the entity-body that would have been sent had the request been a GET.
这两个参数之间有什么关系吗?
【问题讨论】:
-
消息头字段长度vs消息体内容长度(rfc2616),一目了然,这两个参数之间没有关系。
-
一个是最大标题大小:另一个是实际内容大小。没有任何联系。
标签: java tomcat httprequest httpresponse