- Document doc = Jsoup.connect("<a href="http://example.com">http://example.com")
- .data("query", "Java")
- .userAgent("Mozilla")
- .cookie("auth", "token")
- .timeout(3000)
- .post(); //.get();
- String title = doc.title();
- //该片段来自于http://www.codesnippet.cn/detail/230120131875.html
来源: http://www.codesnippet.cn/detail/230120131875.html