get_headers(): SSL 操作失败,代码为 1
2022-08-31 00:36:58
嘿,我试图获取网址的标题信息,
当我使用协议http时,它工作正常,但当我使用https时,它不起作用
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
Warning: get_headers(): Failed to enable crypto in
Warning: get_headers(https://200.35.78.130/): failed to open stream: operation failed in /
这是我的代码
print_r(get_headers("https://200.35.78.130/", 1));