Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. HttpPost httpPost = new HttpPost(url_src);
  2. HttpParams httpParameters = new BasicHttpParams();
  3. httpclient.setParams(httpParameters);
  4. StringEntity se = new StringEntity(str,"UTF-8");
  5. se.setContentType("application/json");
  6. httpPost.setEntity(se);
  7.  
  8. httpPost.setHeader("userId", ""+userId);//userID
  9. httpPost.setHeader("machineId", machineId);//deviceUserMachineID
  10.  
  11. response = httpclient.execute(httpPost);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement