REST API-Http 405方法不允许 [英] REST API-Http 405 Method not allowed
本文介绍了REST API-Http 405方法不允许的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们在IIS 7.0中创建了REST服务和主机。当我们尝试使用HTTP调用REST API时,它可以正常工作。但是当我们尝试使用Http PUT时,我们得到一个响应不允许使用Http 405方法
REST是使用WCF开发并使用svc文件托管的
什么是允许Http PUT / POST请求的IIS配置?
We have created REST service and host in IIS 7.0.When we try to invoke the REST API using HTTP Get it works fine. But when we try to use Http PUT , we get a response "Http 405 method not allowed"
REST is developed using WCF and hosted using svc file
What is the IIS configuration to allow Http PUT/POST requests?
推荐答案
这篇关于REST API-Http 405方法不允许的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文