HTTP Library Questions

keirS

Well-Known Member
Licensed User
Longtime User
I need to be able to include a body in HTTP Delete and Get requests. Is there any way to do this?
 
Last edited:

keirS

Well-Known Member
Licensed User
Longtime User
Erel unfortunately Google disagree with you.

https://developers.google.com/fusiontables/docs/v1/reference/column/delete

This requires a body in a DELETE request. Whilst it's unusual to a have body in a GET request it seems the consensus on the internet is that it's perfectly permissible in HTTP/1.1 and it looks like at least one REST based API requires it. I also need to do PATCH requests as well.

Would this be possible to do using the Reflection library? It looks like even the Android Java libraries don't support PATCH requests though. If not I guess I will have to brush up on Java which might be a bit of a problem as I haven't programmed in Java since 1997.
 
Upvote 0

keirS

Well-Known Member
Licensed User
Longtime User
OK. Would I be better off using the Apache libraries or java.net? My first impression is that java.net.URLConnection appears far simpler to implement than the Apache ones.
 
Upvote 0
Top