Working on an Android application at the moment and needed a quick way to make calls to a REST api.  I found Luke’s post very helpful.

There were some quote corruptions and a missing enum so I fixed those and provided a zip file for the class.  This is NOT MY WORK, please thank Luke for his work 5 years ago.

RestClient.java

UPDATE: I added the ability to do basic auth with this class and the ability to attach a JSON object to the request.  In my opinion it makes this class a lot more useful.