:http://h5api.m.taobao.com/h5/...
public String run(String link) {
String data = "";
try {
//
URL url = new URL(link);
HttpURLConnection httpUrlConn = (HttpURLConnection) url.openConnection();
httpUrlConn.setDoInput(true);
httpUrlConn.setRequestMethod("GET");
httpUrlConn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)");
//
InputStream input = httpUrlConn.getInputStream();
//
InputStreamReader read = new InputStreamReader(input, "utf-8");
//
BufferedReader br = new BufferedReader(read);
//
data = br.readLine();
while (data != null) {
System.out.println(data);
data = br.readLine();
}
//
br.close();
read.close();
input.close();
httpUrlConn.disconnect();
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return data;
}
you can"t get it. Is there any way you can"t get it
?get this: token is empty,
mtopjsonp5 ({"api": "mtop.cainiao.address.ua.china.town.list", "data": {}, "ret": ["FAIL_SYS_TOKEN_EMPTY:: token is empty"], "v": "1.0"})