当我尝试使用以下代码来解析“百思买”产品页面时:
Document doc01 = Jsoup.connect(lineBB)
.userAgent("Chrome/51.0.2704.103")
.header("cookie", "incap_ses_436_255598=zI1vN7X6+BY84PhGvPsMBjKChVcAAAAAVhJ+1//uCecPhV2QjUMw6w==")
.timeout(Integer.MAX_VALUE)
.maxBodySize(Integer.MAX_VALUE)
.followRedirects(true)
.ignoreContentType(true)
.ignoreHttpErrors(true)
.get();
java.net.SocketException:发生了连接重置问题。 仅在我解析“百思买”产品页面时出现此问题,例如: https://www.bestbuy.com/site/easy-vhs-to-dvd-3-plus-windows/6183731.p
在Amazon上尝试时没有问题。 谢谢