Does tomcat support http PATCH method?

血红的双手。 提交于 2019-12-06 06:34:46

问题


A PATCH request to tomcat returns "HTTP Status 501 - Method PATCH is not is not implemented by this servlet for this URI" error. Is it possible to allow the PATCH method in tomcat?


回答1:


Similar question was answered here: How do I stop Apache httpd from rejecting HTTP PATCH requests?

Tested on Tomcat 7 - the request does go through, unless you have Apache in front connected via AJP13.

AJP 13 does not yet support PATCH, all supported methods are here:http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html under "method" section.



来源:https://stackoverflow.com/questions/16805957/does-tomcat-support-http-patch-method

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!