【问题标题】:How to enable PUT and other HTTP methods in the Visual Studio Development Server web server?如何在 Visual Studio Development Server Web 服务器中启用 PUT 和其他 HTTP 方法?
【发布时间】:2012-07-18 16:17:54
【问题描述】:

我想在本地调试一个使用 HTTP PUT 方法接受请求的 Web 服务,但是当我尝试这样做时,Visual Studio 开发服务器 Web 服务器返回错误消息“(405) Method Not Allowed”。

查看相关问题Does Visual Studio's built-in web server support HTTP PUT?。

【问题讨论】:

    标签: .net visual-studio-2010 cassini http-put


    【解决方案1】:

    我在问题描述中的陈述不正确。我调试 Web 服务的“尝试”最终是不正确的——请求的 URL 与 Web 服务的 URL 不匹配。当我修复请求 URL 后,我能够使用 HTTP PUT 方法成功提交请求。

    简答——无需执行任何操作即可在 Visual Studio 开发服务器 Web 服务器中启用 PUT(或其他)HTTP 方法。

    【讨论】:

      猜你喜欢
      • 2012-05-11
      • 1970-01-01
      • 2015-05-20
      • 1970-01-01
      • 2010-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-25
      相关资源
      最近更新 更多