我正在尝试使用java获取网页源代码
public static void main(String[] args) throws Exception {
URL oracle = new URL("http://stackoverflow.com/");
BufferedReader in = new BufferedReader(new InputStreamReader(
oracle.openStream(), "UTF-8"));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}
但问题是我只能获得移动页面,我想获得PC页面
请帮帮我,谢谢! XD