GET方法
final String path="http://v.juhe.cn/toutiao/index?type=top&key=aa0fc538522c9d76ec6c4e9aaec6ab4d";
new Thread(){
private HttpURLConnection conn;
public void run(){
try {
URL url=new URL(path);
conn=(HttpURLConnection)url.openConnection();
conn.setRequestMethod("GET");
conn.setConnectTimeout(5000);
int code=conn