错误“从客户端(&)检测到潜在危险的Request.Path值".在浏览器中运行路径时. [英] Error "A potentially dangerous Request.Path value was detected from the client (&)." while run a path in the browser.

查看:156
本文介绍了错误“从客户端(&)检测到潜在危险的Request.Path值".在浏览器中运行路径时.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有GET函数的http post方法的GET函数,该对象具有一个名为request的对象,并且我在浏览器中键入了以下代码,并收到错误消息A潜在危险的Request.Path值是从客户端检测到的(& ).你能帮我这些忙吗?

http://localhost:78906/Previews/request.items.Quantity = 1&request.items.ShippingSpeed = 9&request.items.win = 1009&request.ShippingAddress = kk

i have a controller has a http post method of GET function with an object named as request and i have typed the below code on the browser and got the error as A potentially dangerous Request.Path value was detected from the client (&). Can u help me in these...

http://localhost:78906/Previews/request.items.Quantity=1&request.items.ShippingSpeed=9&request.items.win=1009&request.ShippingAddress=kk

推荐答案

你好,

看看 [
Hello,

Have a look at this[^] article by Scott Hanselman.

Since you are trying to pass the parameters why not change the URL to
http://localhost:78906/Previews?request.items.Quantity=1&request.items.ShippingSpeed=9&request.items.win=1009&request.ShippingAddress=kk

>
问候


Regards,


这篇关于错误“从客户端(&)检测到潜在危险的Request.Path值".在浏览器中运行路径时.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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