java - difference between maxHttpHeaderSize and content-length -


what difference between maxhttpheadersize in apache tomcat server.xml , content-length in httpservletrequest/httpservletresponse.

    maxhttpheadersize  -  maximum size of request , response http header, specified in bytes. if not specified, attribute set 4096 (4 kb).  content-length  -the content-length entity-header field indicates size of entity-body, in decimal number of octets, sent recipient or, in case of head method, size of entity-body have been sent had request been get.  

is there relation between these 2 parameters?

there no direct connection between two.

the content-length http header field specifies length of request body in octets (8-bit bytes). general field of http requests , has no specific connection apache tomcat.

the maxhttpheadersize field configuration field in apache tomcat configuration file - limits size of http header sent/received server (for security/or network optimization reasons presume).

httpservletrequest/httpservletresponse interfaces used provide request information http servlets: instance can use information of content_length of sent/received http request.

hope difference clear. if want understand http protocol better, start hypertext_transfer_protocol


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -