要使用带有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/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案