我正在尝试在我的网站上配置 google reCAPTCHA v3,并且由于 https,我没有使用 file_get_contents 得到响应。我需要用 curl 替换它,但我不知道如何使用 3 个参数来实现它。
$url="googleverify.com";
$options = array(
'ssl' => array(
'verify_peer'=>false,
'verify_peer_name'=>false,
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data)
)
);
$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
素胚勾勒不出你
万千封印