Does the HttpDelete contain a method like setEntity(), like HttpPost or HttpPut?
When I use HttpPost i do something like this:
httppost.setEntity(new UrlEncodedFormEntity(
getNameValuePairsForFriends(context, friendID)));
How can I do this with wtih delete?
I do not believe that HTTP DELETE takes input – I believe it acts like a GET variant.
The implementation provided by HTTP Client seems to support this conjecture as well.
If you are looking to provide a delete with a body, you /might/ want to consider using a POST to a location that accepts a body.
But in answer to your question, no, delete does not accept a body. You can add query parameters but not a body.