Jersey Delete请求发送请求体

要使用带有RequestEntity的Delete请求,需要使用如下请求方式

client.asyncResource(pointer+url+"/features?clear="+clear).delete(filter);

而不能使用普通的:

client.resource(pointer+url+"/features?clear="+clear).delete(filter);

否则会报类似如下错误:

  java.net.ProtocolException: HTTP method DELETE doesn't support output

 

信息来源:http://en.usenet.digipedia.org/thread/13611/6812/

posted on 2013-01-03 16:41  yoyo002  阅读(1452)  评论(0编辑  收藏  举报