tomcat icon indicating copy to clipboard operation
tomcat copied to clipboard

Add RFC 10008 (The HTTP QUERY Method) Support

Open desiderantes opened this issue 5 months ago • 6 comments

This change adds support for RFC 10008 (The HTTP QUERY Method). QUERY is a safe an idempotent method that carries a body. This implementation adds support for redirections, caching, mandatory content type, and ALLOW.

desiderantes avatar Jun 23 '26 03:06 desiderantes

EE specification link for these changes ? No test that parameters processing works (probably it does).

rmaucher avatar Jun 24 '26 20:06 rmaucher

It isn't part of the Servlet spec yet so we can't modify specification classes.

This looks like a reasonable proposal. I'll look at getting the Servlet specification updated.

markt-asf avatar Jun 24 '26 21:06 markt-asf

EE specification link for these changes ?

Sorry, no EE spec change at this time (Honestly I don't' know where or how to start doing that)

No test that parameters processing works (probably it does).

Added

desiderantes avatar Jun 24 '26 22:06 desiderantes

It isn't part of the Servlet spec yet so we can't modify specification classes.

Should I remove that addition then?

This looks like a reasonable proposal. I'll look at getting the Servlet specification updated.

Thank you! Yes, RFC 10008 is a very simple addition, hopefully we can get it when 12 gets released

desiderantes avatar Jun 24 '26 22:06 desiderantes

Coded nearly the same this morning. It'd be awesome to have a QUERY method. To avoid P2 data in URLs, QUERY would be just great to stop abusing POST.

I'd like to contribute the AJP support, messages and JSP support if this feature is accepted.

ffray avatar Jun 25 '26 05:06 ffray

See https://github.com/jakartaee/servlet/pull/1069

markt-asf avatar Jun 25 '26 19:06 markt-asf

Implemented with a few minor variations. Obviously, only available in Tomcat 12 due to the API changes.

markt-asf avatar Jul 01 '26 11:07 markt-asf