1. 程式人生 > >如何讓IIS 能響應HTTP PUT和DELETE請求

如何讓IIS 能響應HTTP PUT和DELETE請求

<system.webServer>
  <modules runAllManagedModulesForAllRequests="true">
   <remove name="WebDAVModule"/>
  </modules>
    <handlers>
      <remove name="WebDAV" />
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <remove name="OPTIONSVerbHandler" />
      <remove name="TRACEVerbHandler" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
  </system.webServer>