简体   繁体   English

如何配置 IIS 以接受 POST 请求?

[英]How do I Configure IIS to accept POST requests?

I know by default IIS doesn't accept post requests how can I change this setting.我知道默认情况下 IIS 不接受发布请求我该如何更改此设置。 Can someone walk me through changing this (step by step).. Please?有人可以引导我改变这个(一步一步)..拜托?

If you are using IIS 6 and lower:如果您使用的是 IIS 6 及更低版本:

From inside the IIS management screen right click on your website or virtual directory.在 IIS 管理屏幕中,右键单击您的网站或虚拟目录。 Go to Properties then go to the Home Directory or Virtual Directory tab and click on the Configuration button.转到“ Properties ”,然后转到“ Home Directory ”或“ Virtual Directory ”选项卡,然后单击“ Configuration ”按钮。 From there you can add/update extensions and what Verbs are accepted.从那里您可以添加/更新扩展名以及接受的动词。


If you are using IIS 7:如果您使用的是 IIS 7:

From inside the IIS management screen click on Handler Mappings .从 IIS 管理屏幕中单击Handler Mappings You can add by clicking the links on the right side or double-click on an item to edit it.您可以通过单击右侧的链接添加或双击一个项目进行编辑。

处理程序映射位置的图片

If it's related to an asp.net app you might be able to set it in your web.config as described here .如果它与 asp.net 应用程序相关,您可以按照此处所述在 web.config 中进行设置。

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

相关问题 如何将IIS配置为仅接受来自网络上其他服务器和组的请求? - How do I configure IIS to only accept requests from other servers and groups on my network? 如何强制 Blazor 应用程序接受 POST 请求? - How do I force a Blazor app to accept POST requests? 如何在IIS上配置WCF(svc)服务以仅对HTTPS请求提供服务? - How do I configure my WCF (svc) Service on IIS to serve on HTTPS requests only? 如何为IIS 7上的SOAP WebService的POST(上载)请求启用GZIP压缩? - How do I enable GZIP compression for POST (upload) requests to a SOAP WebService on IIS 7? 如何绕过IIS中的接受标头验证? - How do I bypass Accept header validation in IIS? 如何为IIS配置SQL Server Express 2017 - How do I configure SQL Server Express 2017 for IIS 如何配置IIS来处理真正大的文件上传? - How do I configure IIS to handle really large file uploads? 如何配置IIS或Web服务器以允许其读取和写入文件? - How do I configure IIS or the web server to allow it to read and write files? 如何配置IIS以便在连接到SQL Server时使用用户的域凭据? - How do I configure IIS so that the user's domain credentials are used when connecting to SQL server? 如何将MVC3 Hello World应用程序部署到localhost并配置IIS - How do I deploy MVC3 Hello World App to localhost and configure IIS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM