zoukankan      html  css  js  c++  java
  • java.lang.IllegalArgumentException: Request header is too large

    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" />
  • 相关阅读:
    微信小程序
    微信小程序
    微信小程序
    微信小程序
    es5
    es5
    es5||es6
    es5
    5 个常用的软件质量指标
    Solr
  • 原文地址:https://www.cnblogs.com/digdeep/p/6388081.html
Copyright © 2011-2022 走看看