I have a question.
I have index.php file in structure folder like this :
and it contain only json content.
I want index.php file host in azure website recieve POST request from client written in .NET and respond with content in that PHP file, that json content
I have added web.config in wwwroot with following structure
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <handlers> <remove name="PHP53_via_FastCGI" /> <add name="PHP53_via_FastCGI" path="*.php" verb="GET,PUT,POST,DELETE,HEAD,OPTIONS,TRACE,PROPFIND,PROPPATCH,MKCOL,COPY,MOVE,LOCK,UNLOCK" modules="FastCgiModule" scriptProcessor="D:\Program Files (x86)\PHP\v5.3\php-cgi.exe" resourceType="Either" requireAccess="Script" /> </handlers> </system.webServer> </configuration>
But when running client tools, Fiddler show HTTP 405 “Method Not Allowed” , > The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used. Which is not support POST request.
How can index.php serve POST request from client tools running in window ?
Thanks in advanced !