file_get_contents(): SSL operation failed with code 1
时间:2021-06-16 23:28:37浏览:1150
出现file_get_contents(): SSL operation failed with code 1的错误
上一篇:Python爬虫支持的网页解析技术有几种?这几种技术有什么特点?
下一篇:Python实现简单HTTP服务器
方法需要添加参数,如下:
$stream_opts = [
"ssl" => [
"verify_peer"=>false,
"verify_peer_name"=>false,
]
];
$response = file_get_contents("https://www.yourdomain.com",false, stream_context_create($stream_opts));
上一篇:Python爬虫支持的网页解析技术有几种?这几种技术有什么特点?
下一篇:Python实现简单HTTP服务器
- Linux文章
- PHP文章
- 随机文章
- Linux系统如何设置开机自动运行脚...
- Linux上实现秒级执行的定时任务
- shell echo -e 颜色输出
- Linux下通过grep查找指定的进...
- 解决执行脚本报syntax erro...
- Linux Shell获取文件夹下的...
- scp在本地和远程端传送文件
- 解决Shell脚本$‘\r’: co...
- Apache Nginx 禁止目录执...
- 30个Linux Shell脚本
发表评论
昵称: 验证码: