Tuesday, January 15, 2013

PUT Request with basic auth using httpClient

This code does a put request with basic auth, it sends an xml file and the response comes into a json object, it just checks that the response was success in this case 201 is success.