Advertisement
colmulhall

Untitled

Apr 2nd, 2014
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. @Override
  2. protected String doInBackground(String... params)
  3. {
  4.     HttpClient httpclient = new DefaultHttpClient();
  5.     HttpPost httppost = new HttpPost(params[0]);
  6.     try {
  7.         HttpResponse response = httpclient.execute(httppost);
  8.         jsonResult = inputStreamToString(
  9.         response.getEntity().getContent()).toString();
  10.     }
  11.     catch (ClientProtocolException e) {
  12.         e.printStackTrace();
  13.     } catch (IOException e) {
  14.         e.printStackTrace();
  15.     }
  16.     return null;
  17.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement