servlet
servlet copied to clipboard
Support newer http methods eg PATCH
RFC 5789 defines the method "PATCH". http://tools.ietf.org/html/rfc5789
Its semantics seem similar to POST or PUT in that it provides content to the server. However, section 3, pg 24 does not permit a web server to parse form-url-encoded content unless:
1. The request is an HTTP or HTTPS request. 2. The HTTP method is POST. 3. The content type is application/x-www-form-urlencoded. 4. The servlet has made an initial call of any of the getParameter family of methods on the request object.
Thus, the spec needs to be updated to accommodate methods like PUT and the newer PATCH.
- Issue Imported From: https://github.com/javaee/servlet-spec/issues/113
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @glassfishrobot
@glassfishrobot Commented Reported by janbartel
@glassfishrobot Commented This issue was imported from java.net JIRA SERVLET_SPEC-113
I made a REST API and I really need the doPatch method on the Servlet API.
I think PATCH is the only one that is missing.
Fixed by #507