digdeep

凡是过去,皆是序幕。Read the fucking manual and source code.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

ajax 提交时,默认采用的是 get提交方式,数据是放在头部的,数据量超过了限制,所以报错。

改成 post提交,将数据放到 body 中。解决问题。

其他解决方法:

<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" maxHttpHeaderSize="65536" maxPostSize="4194304"  
               URIEncoding="UTF-8"/>


http://stackoverflow.com/questions/2472905/request-header-is-too-large


the proper solution is to add the following property under http-listener:

<property name="maxPostSize" value="xxxx" />

 

posted on 2017-02-10 22:01  digdeep  阅读(710)  评论(0编辑  收藏  举报
不懂数据库和Web安全的架构师不是一个好的程序员。