Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HttpPost httpPost = new HttpPost(url_src);
- HttpParams httpParameters = new BasicHttpParams();
- httpclient.setParams(httpParameters);
- StringEntity se = new StringEntity(str,"UTF-8");
- se.setContentType("application/json");
- httpPost.setEntity(se);
- httpPost.setHeader("userId", ""+userId);//userID
- httpPost.setHeader("machineId", machineId);//deviceUserMachineID
- response = httpclient.execute(httpPost);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement