我使用的网站是https协议的网站,所以我想使用忽略证书。但是我无法设置忽略证书。
"BusStopCode","RoadName","Description","Latitude","Longitude"
"01012","Victoria St","Hotel Grand Pacific","1.29684825487647","103.85253591654006"
"01013","Victoria St","St. Joseph's Ch","1.29770970610083","103.8532247463225"
"01019","Victoria St","Bras Basah Cplx","1.29698951191332","103.85302201172507"
"01029","Nth Bridge Rd","Cosmic Insurance Bldg","1.2966729849642","103.85441422464267"
// and so on
"02089","Raffles Blvd","Pan Pacific Hotel","1.29152694444975","103.8592061110504"
"02099","Raffles Blvd","Marina Ctr Ter","1.29101661693418","103.86255772172497"
"01012","Victoria St","Hotel Grand Pacific","1.29684825487647","103.85253591654006"
"01013","Victoria St","St. Joseph's Ch","1.29770970610083","103.8532247463225"
// and so on
我收到这样的错误,
jodd.http.HttpException:sun.security.validator.ValidatorException:PKIX路径构建失败
答案 0 :(得分:2)
切换到最新的Jodd v3.8.1。您有以下方法:trustAllCerts
。它将信任所有证书:)像这样使用它:
HttpRequest
.get("https://xxxxx.com?0.6891255003788694")
.header("Referer","https://xxxxx.com/x.jsp")
.trustAllCerts(true);