0
我正在使用Play!框架(2.0.4)从我的Android应用程序休息servise。我想从android发送POST请求,但收到来自路由的错误消息。 这是我的路由文件看起来像从Android客户端处理POST
POST /addText/:txt controllers.Application.addText(txt: String)
和Android的
int response = HttpRequest.post("localhost:9000/addtext/").send("txt=some text").code();
IM POST请求,利用HTTP请求library
谢谢,你让我的一天! –