如何在查询字符串中传递长度值? [英] How to pass length value in query string?

查看:66
本文介绍了如何在查询字符串中传递长度值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

i get this error when i pass a value in query string .i tried below code but the same error exists.How to fix this error
HTTP Error 404.15 - Not Found
The Request filtering module is configured to deny a request where the query string is too long



i使用以下代码进行网址加密如果我删除此代码没有显示错误但我使用此加密代码即将发生同样的错误。


i use below code for url encryption if i remove this code no error is showing but i use this encryption code same error is coming.

<httpModules>
<add type="QueryStringModule" name="QueryStringModule"/>
</httpModules>





我尝试过:





What I have tried:

<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxQueryString="3000" maxUrl="1000" /> /* Change the Url limit here */
</requestFiltering>
</security>
</system.webServer>
</configuration> 







<httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/>







<httpRuntime maxQueryStringLength="260" maxRequestLength="2048"/>

推荐答案

试试这个,经过测试。它根据您的问题和评论发布。

配置web.config以允许任何长度的请求 [ ^ ]
try this,tested. it works as per your question and comments posted.
configure the web.config to allow requests of any length [^]


这篇关于如何在查询字符串中传递长度值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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