.net post请求过长 , 超过配置 maxQueryStringLength值

此请求的查询字符串的长度超过配置的 maxQueryStringLength 值。

<configuration>
    <system.web>
      <compilation debug="true" targetFramework="4.5" />
      <httpRuntime targetFramework="4.5" maxQueryStringLength="102400"  />
    </system.web>
    <system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxQueryString="102400" />
            </requestFiltering>
        </security>
    </system.webServer>

</configuration>

然后将web.config文件更新至服务器上与ajax同级目录下

 

用 btoa 编码  base64

用 atob 解码 base64

原文地址:https://www.cnblogs.com/ignacio/p/8735392.html