嘿,我试图获取URL的头部信息,当我使用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));