HttpClient client = new DefaultHttpClient();
HttpResponse response = client.execute(httpGet);//需要捕获异常
result = EntityUtils.toString(response.getEntity(),“utf-8”);
System.out.println(result);
result返回的是:
获取成功0<access_token>1e8336b87be12106422f6ea16b5746b0</access_token>7200
按照如上代码,result的结果是一串字符串,但是我的目的是想获取,接口返回的access_token值,这个应该如何编写?