gpt4 book ai didi

python - urllib2 - 能够跳过证书验证

转载 作者:太空狗 更新时间:2023-10-30 00:08:00 25 4
gpt4 key购买 nike

我需要为 curl 以某种方式模拟选项 -k(vide --insecure 以忽略 SSL 证书验证)但使用 urllib2。有什么线索吗?

最佳答案

这里没什么特别的。 urllib2 默认不做SSL证书验证。文档中有警告 http://docs.python.org/library/urllib2.html

Warning HTTPS requests do not do any verification of the server’s certificate.

关于python - urllib2 - 能够跳过证书验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11724765/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com