개발 이야기/Network

[protocol] max http header length

footprintz 2013. 12. 24. 19:41

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.


cf)

Apache 2.0, 2.2: 8K

nginx: 4K - 8K

IIS: varies by version, 8K - 16K

Tomcat: varies by version, 8K - 48K (?!)


 - 원문 : http://stackoverflow.com/questions/686217/maximum-on-http-header-values