//webUrl网址 执行后可以用文件流读取uc
URLConnection uc = new URL(webUrl).openConnection();
uc.setRequestProperty("User-Agent",
"Mozilla/4.0 (compatible; MSIE 5.0; Windows XP; DigExt)");
通过网址获取html
最新推荐文章于 2024-04-25 20:22:26 发布
//webUrl网址 执行后可以用文件流读取uc
URLConnection uc = new URL(webUrl).openConnection();
uc.setRequestProperty("User-Agent",
"Mozilla/4.0 (compatible; MSIE 5.0; Windows XP; DigExt)");