简体   繁体   English

ASP.Net Web API HTTP Verb URL无法从REST客户端运行

[英]ASP.Net Web API HTTP Verb URL not working from REST Client

I'm preparing a ASP.Net Web API Projectin visual studio 2013 (.net framework 4.5.2). 我正在为visual studio 2013(.net framework 4.5.2)准备一个ASP.Net Web API Project。 I'm facing a problem to access HTTP Verb methods from REST Client (Google Chrome Advanced REST Client / Postman / Fiddler). 我遇到了从REST客户端(Google Chrome高级REST客户端/邮递员/提琴手)访问HTTP Verb方法的问题。 When I run the project and in the browser writing the url " http://localhost:6667/api/products " I can see from the debug that the get method is getting called. 当我运行项目并在浏览器中编写URL“ http:// localhost:6667 / api / products ”时,我可以从调试中看到get方法被调用。 But when I type the same url in REST Client (Google Chrome Advanced REST Client / Postman / Fiddler) it shows error connecting to " http://localhost:6667/api/products ". 但是当我在REST客户端(谷歌浏览器高级REST客户端/邮递员/提琴手)中键入相同的URL时,它显示错误连接到“ http:// localhost:6667 / api / products ”。 Can anyone give a guidance on the solution? 任何人都可以就解决方案提供指导吗?

You can't access your local IIS Express from anywhere outside of your machine. 您无法从计算机外部的任何位置访问本地IIS Express。 You'll need a local desktop REST client to test this locally on your development machine. 您需要一个本地桌面REST客户端在您的开发计算机上本地测试它。

http://restclient.org/ is a good place to start. http://restclient.org/是一个很好的起点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM