问题描述
谁能告诉我问题,我的网址: -http://www.advantarealty.net/Search//Condo,Single-Family-Home,Townhome_PropertyType/True_ForMap/8_Zoom/-81.3043212890625T29.099376992628493,-80.88134765625T28.9120147012556,-80.826416015625T28.41555985166584,-81.1669921875T28.033197847676377,-81.6888427734375T28.033197847676377,-82.1392822265625T28.222130007158537,-82.2601318359375T28.584521719370418,-82.1612548828125T28.92163128242129,-81.9305419921875T29.257648503615542,-81.6339111328125T29.248063243796576,-81.6064453125T28.849485201023,-81.3043212890625T29.099376992628493_Polygon/
Can anyone please tell me issue with my URL:-http://www.advantarealty.net/Search//Condo,Single-Family-Home,Townhome_PropertyType/True_ForMap/8_Zoom/-81.3043212890625T29.099376992628493,-80.88134765625T28.9120147012556,-80.826416015625T28.41555985166584,-81.1669921875T28.033197847676377,-81.6888427734375T28.033197847676377,-82.1392822265625T28.222130007158537,-82.2601318359375T28.584521719370418,-82.1612548828125T28.92163128242129,-81.9305419921875T29.257648503615542,-81.6339111328125T29.248063243796576,-81.6064453125T28.849485201023,-81.3043212890625T29.099376992628493_Polygon/
我收到以下错误始终。
错误的请求 - 无效的URL。HTTP错误400请求URL是无效的。
Bad Request - Invalid URL.HTTP Error 400. The request URL is invalid.
在上面的网址,我想这是超过最大查询字符串参数的长度,所以我尝试了越来越多像下面。
In above URL, I guess it's exceeding maximum query string parameter length so i tried increasing it like below.
<system.web>
<!--<httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/>-->
<httpRuntime targetFramework="4.5" maxUrlLength="2097151" relaxedUrlToFileSystemMapping="true" maxQueryStringLength="2097151" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxUrl="40960" maxQueryString="2097151" />
</requestFiltering>
</security>
</system.webServer>
我已经试过request在使用超过了配置maxQueryStringLength [授权]
I have triedrequest exceeds the configured maxQueryStringLength when using [Authorize]
How配置web.config文件,以允许任何长度的请求
推荐答案
您正斜杠在您的网址似乎是不属于。如果更换
You have forward slashes in your URL that don't seem to belong. If you replace
http://www.advantarealty.net/Search//Condo,Single-Family-Home,Townhome_PropertyType/True_ForMap/8_Zoom/..."
与
http://www.advantarealty.net/Search/Condo,Single-Family-Home,Townhome_PropertyType,True_ForMap,8_Zoom,"
您将有一个有效的URL。我从你的问题将网址复制并更换这些多余的/经证实这一点。
you will have a valid URL. I proved this by copying the URL from your question and replacing those extraneous "/"s.
这篇关于问题与查询字符串参数的长度。 HTTP错误400的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!