Search code examples
tomcathttprequestrestful-architecture

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. Is it possible to allow the PATCH method in tomcat?


Solution

  • 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.