405 Method Not Allowed

The HyperText Transfer Protocol (HTTP) 405 Method Not Allowed response status code indicates that the request method is known by the server but is not supported by the target resource.

The server MUST generate an Allow header field in a 405 response containing a list of the target resource’s currently supported methods.

In this case, 405 Error occurs because some web server like Apache、IIS、Nginx、, etc don't allow response to POST request in static files, otherwise the error "HTTP/1.1 405 Method not allowed" will be returned.

We can tell from the return message that the web service is IIS and the version is 7.5. X-Powered-By:ASP.NET.

posted @ 2021-01-29 18:21  咕咕鸟GGA  阅读(169)  评论(0编辑  收藏  举报