日期:2014-05-18  浏览次数:20591 次

有关jsoup请求页面问题
如何利用jsoup发送页面请求,比如说我要在中关村的网页内搜索小米
中关村主页http://www.zol.com.cn/
就在这一层网页搜索
搜索到结果的网页http://detail.zol.com.cn/index.php?keyword=%D0%A1%C3%D7&c=SearchList
那么我应该如果通过jsoup发送请求呢

------解决方案--------------------
Connection.Response res = Jsoup.connect("http://www.zol.com.cn/").data(
"keyword", "小米").execute();

Document doc = res.parse();
System.out.println(doc);