http标头值的最大值? [英] Maximum on http header values?

查看:95
本文介绍了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.

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

这篇关于http标头值的最大值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆