http标头值的最大值?

问题描述:

HTTP标头是否允许最大允许大小?如果是这样,它是什么?如果没有,这是服务器特定的东西,或者是允许任何大小的标题的公认标准吗?

Is there an accepted maximum allowed size for HTTP headers? If so, what is it? If not, is this something that's server specific or is the accepted standard to allow headers of any size?

不,HTTP确实如此没有定义任何限制。但是,大多数Web服务器都会限制它们接受的标头大小。例如, Apache默认限制为8KB, IIS它是16K 。如果标头大小超过该限制,服务器将返回 413实体太大错误。

No, HTTP does not define any limit. However most web servers do limit size of headers they accept. For example in Apache default limit is 8KB, in IIS it's 16K. Server will return 413 Entity Too Large error if headers size exceeds that limit.

相关问题:用户代理字符串有多大?