工作小总结

java爬虫问题一:解决使用htmlunit 时候ssl认证失败问题

前言:在使用htmlunit爬取其他网站信息的时候,提示错误信息:unabletofindvalidcertificationpathtorequestedtarget意思:说明证书问题。各种检索,使用了很多方法,以下记录解决思路:解决方案一:一种解决方案是:webClient.getOptions().setUseInsecureSSL(true);这么设置之后,确实没有在提示unabletof

前言:

在使用htmlunit 爬取其他网站信息的时候,提示错误信息:unable to find valid certification path to requested target

意思:

说明证书问题。各种检索,使用了很多方法,以下记录解决思路:

解决方案一:

一种解决方案是: webClient.getOptions().setUseInsecureSSL(true);

这么设置之后,确实没有在提示unable to find valid certification path to requested target错误了。但是引发了其他的问题。所以该方案不成立。

继续排查:

原创不易,完成人机校验,阅读全文

相关推荐