tomcat是否支持http PATCH方法? [英] Does tomcat support http PATCH method?
问题描述
对tomcat的PATCH请求返回"HTTP状态501-此URI对此Servlet未实现方法PATCH"错误.可以在tomcat中允许使用PATCH方法吗?
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?
推荐答案
Similar question was answered here: How do I stop Apache httpd from rejecting HTTP PATCH requests?
在Tomcat 7上进行了测试-除非您的前端通过AJP13连接了Apache,否则请求确实会通过.
Tested on Tomcat 7 - the request does go through, unless you have Apache in front connected via AJP13.
AJP 13尚不支持PATCH,所有受支持的方法均在此处: http ://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html 在方法"部分下.
AJP 13 does not yet support PATCH, all supported methods are here:http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html under "method" section.
这篇关于tomcat是否支持http PATCH方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!