Announcement

Collapse
No announcement yet.

PUT and DELETE method not supported on IIS server

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PUT and DELETE method not supported on IIS server

    I am running a simple website on a hostforlife windows server, I suppose it is IIS server. The backend of the website is REST api implemented in PHP. However, when I send requests with PUT and DELETE as method, it just return 405 method unsupported. My web.config is like this:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                  <remove name="Main Rule"/>
                    <rule name="Sub Rule" stopProcessing="true">
                        <match url=".*" />
                        <conditions logicalGrouping="MatchAll">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
    
                        </conditions>
                        <action type="Rewrite" url="index.php" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>

  • #2
    There are loads of reasons why it could or could not work. But I'm using rest client services on my IIS installation without any problems. But this info is too limited (for me at least) to guess why it doesn't work.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Check here: http://stackoverflow.com/questions/6...for-put-method

      Comment

      Working...
      X