tomcat是否支持http PATCH方法? [英] Does tomcat support http PATCH method?

查看:249
本文介绍了tomcat是否支持http PATCH方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆