What causes an HTTP 405 “invalid method (HTTP verb)” error when POSTing a form to PHP on IIS?

后端 未结 11 1188
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 12:05

I have one form in a PHP (5.2.9-1) application that causes IIS (Microsoft-IIS/6.0) to throw the following error when POSTed:

The page you are looking

11条回答
  •  情书的邮戳
    2020-11-29 12:49

    The acceptable verbs are controlled in web.config (found in the root of the website) in and possibly . Web.config will be accessible to you if it exists. There is also a global server.config which probably won't. If you can get a look at either of these you may get a clue.

    The acceptable verbs can differ with the content types - have you set Content-type headers in your page at all ? (i.e. if your Content-type was application/json then different verbs would be allowed)

提交回复
热议问题