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

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

问题描述

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

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

推荐答案

连接器部分有参数

ma​​xPostSize

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

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).

另一个限制是:

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

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).

你可以在

$TOMCAT_HOME/conf/server.xml

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

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