android客户端的POST操作

我在应用中用到Play! framework(2.0.4)作为rest服务。从android发送post请求后,在路径接受到错误信息。路径文件:

POST     /addText/:txt                               controllers.Application.addText(txt: String)

android中的post请求:

int response = HttpRequest.post("localhost:9000/addtext/").send("txt=some text").code();

用的这个http请求

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^