Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HttpClient httpclient = new DefaultHttpClient();
- HttpPost httppost = new HttpPost(postUrl);
- httppost.addHeader("Content-Type","application/json;charset=UTF-8")
- StringEntity body = new StringEntity(hashMap.get("JSON").toString());
- body.setContentType("application/json; charset=UTF-8");
- httppost.setEntity(body);
Add Comment
Please, Sign In to add comment