Default tunneling of PUT and DELETE through POST

Description

Add support for method-tunneling to BaseResource:

@Post
void tunnelMethod(Representation r) {
if (parameters.contains("method")) {
// 1 check whether method is put or delete, if neither return bad request
// 2 invoke put() / delete() (this should find the correct methods via annotations)
// etc
}
}

Probably requires to check all resources for already existing tunneling-workarounds.

Environment

None

Activity

Show:
Hannes Ebner
March 26, 2014, 4:02 PM

This workaround is not necessary anymore; this was apparently a problem with Safari 3.

Hannes Ebner
February 26, 2014, 9:42 PM

Source code of ServerResource, in case it is needed to look up the internals of put() and delete().

https://github.com/restlet/restlet-framework-java/blob/master/modules/org.restlet/src/org/restlet/resource/ServerResource.java

Won't Fix

Assignee

Hannes Ebner

Reporter

Hannes Ebner

Labels

None

Fix versions

Priority

Normal