Maximum on http header values?

前端 未结 5 663
-上瘾入骨i
-上瘾入骨i 2020-11-22 09:45

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 heade

5条回答
  •  南笙
    南笙 (楼主)
    2020-11-22 10:26

    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.

    Related question: How big can a user agent string get?

提交回复
热议问题