Android doGet方法

DefaultHttpClient httpclient = new DefaultHttpClient();
  HttpGet httpget = new HttpGet("http://www.google.com/");
  HttpResponse response = httpclient.execute(httpget);
  HttpEntity entity = response.getEntity();
  System.out.println(response.getStatusLine());
  if (entity != null) {
  entity.consumeContent();
}
上一篇:使用Jil序列化JSON提升Asp.net web api 性能


下一篇:一份关于npm的新手指南