域名标题批量查询php代码
$domain
);
// 发送请求
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
$response = curl_exec($ch);
// 处理响应
if ($response !== false) {
$result = json_decode($response, true);
if ($result['code'] == 0) {
echo $domain . ' - ' . $result['data']['title'] . "\n";
} else {
echo $domain . ' - Error: ' . $result['message'] . "\n";
}
} else {
echo $domain . ' - Error: ' . curl_error($ch) . "\n";
}
}
// 关闭curl
curl_close($ch);
?>
原文地址: https://www.cveoy.top/t/topic/bJUM 著作权归作者所有。请勿转载和采集!