【发布时间】:2013-02-26 18:56:39
【问题描述】:
我想在正文(不是表单)中使用 xml 执行 HTTP DELETE 请求。如何执行这个 HTTP DELETE 请求?
我尝试使用HttpURLConnection 但there are some limitations with it。
我也尝试过使用 apache 的 HttpClient。但是我不知道如何发送没有application/x-www-form-urlencoded结构的xml。
【问题讨论】:
-
在基于 REST 的 api 中支持 http 请求体。但我没有发现它在任何地方实现了删除请求体。嗯,很有趣
-
HttpDelete with body的可能重复
-
@WebnetMobile,这不是重复的。如果您想发送
application/x-www-form-urlencoded结构但不适用于原始数据(如 xml),HttpDelete with body 可以解决问题。 -
这能回答你的问题吗? HttpDelete with body
标签: android rest http http-delete