Guest User

Untitled

a guest
May 30th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. HttpClient httpclient = new DefaultHttpClient();
  2. HttpPost httppost = new HttpPost(postUrl);
  3. httppost.addHeader("Content-Type","application/json;charset=UTF-8")
  4. StringEntity body = new StringEntity(hashMap.get("JSON").toString());
  5. body.setContentType("application/json; charset=UTF-8");
  6. httppost.setEntity(body);
Add Comment
Please, Sign In to add comment