Showing posts with label HttpURLConnection. Show all posts
Showing posts with label HttpURLConnection. Show all posts

Friday, January 11, 2013

Playnig With HTTP Methods

I am highly interested in RESTful web services these days :) . So I tried to implement my own RESTful API and wrote REST client to communicate with the service. GET, POST, PUT, DELETE are basic HTTP methods used in REST services (details of HTTP methods can be found here) . Lets see how I implemented basic CRUD operations using HTTP methods.

For the sake of simplicity I have simply echoed the request body and selected request headers back as the service implementation.

© kani.stack.notez 2012 | Blogger Template by Enny Law - Ngetik Dot Com - Nulis