简体   繁体   English

tomcat是否支持http PATCH方法?

[英]Does tomcat support http PATCH method?

A PATCH request to tomcat returns "HTTP Status 501 - Method PATCH is not is not implemented by this servlet for this URI" error. 对tomcat的PATCH请求返回“HTTP状态501 - 此servlet未针对此URI实现方法PATCH”错误。 Is it possible to allow the PATCH method in tomcat? 是否可以在tomcat中允许PATCH方法?

Similar question was answered here: How do I stop Apache httpd from rejecting HTTP PATCH requests? 这里回答了类似的问题: 如何阻止Apache httpd拒绝HTTP PATCH请求?

Tested on Tomcat 7 - the request does go through, unless you have Apache in front connected via AJP13. 在Tomcat 7上测试 - 请求确实经过,除非您通过AJP13连接Apache。

AJP 13 does not yet support PATCH, all supported methods are here: http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html under "method" section. AJP 13还不支持PATCH,所有支持的方法都在这里: http//tomcat.apache.org/connectors-doc/ajp/ajpv13a.html在“方法”部分下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM