HttpPost httpPost = new HttpPost(url); HttpClient httpClient = new DefaultHttpClient(); try { JSONObject json = new JSONObject(); json.put("Id", 1); json.put("UserName", "userName"); StringEntity se = new StringEntity( json.toString()); httpPost.setEntity(se); HttpResponse response = httpClient.execute(httpPost); String result = EntityUtils.toString(response.getEntity()); return result;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)