Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net web api %2F不为“工作”/&引用;但是%3F正在为“工作”&引用;在Web API uri中_Asp.net Web Api_Restful Url - Fatal编程技术网

Asp.net web api %2F不为“工作”/&引用;但是%3F正在为“工作”&引用;在Web API uri中

Asp.net web api %2F不为“工作”/&引用;但是%3F正在为“工作”&引用;在Web API uri中,asp.net-web-api,restful-url,Asp.net Web Api,Restful Url,我在RESTfulAPI中使用自定义函数来获得特定的结果。 要获取名为“ABC?”的字符串,我在下面发送get请求URI https://localhost:44372/route/V1/Values/ExistsValue(Name='ABC%3F')/ 这很好用。但是为了获得名称为“ABC/”,我在下面发送get请求URI https://localhost:44372/route/V1/Values/ExistsValue(Name='ABC%2F')/ 但这不起作用。它显示如下错误 II

我在RESTfulAPI中使用自定义函数来获得特定的结果。 要获取名为“ABC?”的字符串,我在下面发送get请求URI

https://localhost:44372/route/V1/Values/ExistsValue(Name='ABC%3F')/

这很好用。但是为了获得名称为“ABC/”,我在下面发送get请求URI

https://localhost:44372/route/V1/Values/ExistsValue(Name='ABC%2F')/

但这不起作用。它显示如下错误

IIS 10.0详细错误-404.0-未找到

如何处理


提前感谢……

您是否检查了此答案-抱歉,但不起作用我对请求URI使用了等效的十六进制值,它起作用了。您是否检查了此答案-抱歉,但不起作用我对请求URI使用了等效的十六进制值,它起作用了。