JSONObject apiObject = new JSONObject();
List<NameValuePair> nvps = new ArrayList<NameValuePair>();
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(URL);
ResponseHandler<String> responseHandler = new BasicResponseHandler();
// do something useful with the response body
// and ensure it is fully consumed
// EntityUtils.consume(entity);
} finally {
httpPost.releaseConnection();
}