首页 > 代码库 > IIS 7启用static JSON文件能POST方法

IIS 7启用static JSON文件能POST方法

<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer>    <handlers>            <add name="JSON" path="*.json" verb="GET,POST" modules="IsapiModule" scriptProcessor="C:\Windows\System32\inetsrv\asp.dll" resourceType="File" requireAccess="None" />    </handlers>        <security>            <requestFiltering>                <fileExtensions>                    <add fileExtension=".json" allowed="true" />                </fileExtensions>                <verbs>                    <add verb="POST" allowed="true" />                </verbs>            </requestFiltering>        </security></system.webServer></configuration>

 

 

 参考地址

https://serverfault.com/questions/258399/how-to-tell-iis7-to-allow-post-to-a-text-file-to-solve-405

 

技术交流QQ群:15129679

IIS 7启用static JSON文件能POST方法