首页 > 解决方案 > 我想通过避免 x509: certificate has expired or is not yet valid 使用 goquery 来访问

问题描述

doc, err := goquery.NewDocument(site_url)
    if err != nil {
        panic(err)
        return
    }

运行上面给出的错误 panic: Get site_url: x509: certificate has expired or is not yet valid

如何绕过证书验证并访问任何站点?

在谷歌上搜索后,使用client.Getand http.Get,我找到了一种方法 &tls.Config {InsecureSkipVerify: true}但我找不到方法goquery

去版本go1.13.5

centos7

标签: go

解决方案


推荐阅读