HttpRequest在tomcat中允许的最大大小? [英] HttpRequest maximum allowable size in tomcat?

查看:1028
本文介绍了HttpRequest在tomcat中允许的最大大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在单个 HttpURLConnection 中向 Tomcat 发送的最大数据大小是多少?请求大小是否有任何限制?

解决方案

连接器部分具有参数



maxPostSize



POST将由容器FORM URL参数解析处理的最大字节数(以字节为单位)。可以通过将此属性设置为小于或等于0的值来禁用该限制。如果未指定,则此属性设置为2097152(2兆字节)。



另一个限制为:



maxHttpHeaderSize 请求和响应HTTP标头的最大大小,以字节为单位指定。如果未指定,则此属性设置为4096(4 KB)。



您可以在



$ b <$ p $中找到它们p> $ TOMCAT_HOME / conf / server.xml


What is the maximum data size I can send in a single HttpURLConnection to Tomcat? Is there any limitation for the request size?

解决方案

The connector section has the parameter

maxPostSize

The maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. The limit can be disabled by setting this attribute to a value less than or equal to 0. If not specified, this attribute is set to 2097152 (2 megabytes).

Another Limit is:

maxHttpHeaderSize The maximum size of the request and response HTTP header, specified in bytes. If not specified, this attribute is set to 4096 (4 KB).

You find them in

$TOMCAT_HOME/conf/server.xml

这篇关于HttpRequest在tomcat中允许的最大大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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