Folks--
Using restlets 2.1 snapshot
I have a method defined like this:
@Post("form")
public Representation accept(Representation r) {
...
}
When I use the following command line to test:
curl -v -d foo=bar http://localhost:9000/my/route
everything works just fine. I'm getting a representation of type
application/x-www-form-urlencoded, which is what I'd expect.
However, if I do the following:
curl -v -F foo=bar http://localhost:9000/my/route
which sends the data as multipart/form-data, I get a 405, Method Not Allowed
response.
If I do NOT use the @Post("form"), no matter what I do I get the 405.
I've got the fileupload extensions installed. Is there something I'm
missing? What token should I include in the @Post annotation?
"multipartform" doesn't seem to work.
Should I downgrade to 2.0?
Keith
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2665495