$url = 'https://who.cx/api/whois_extract';
$data = array('domain' => 'dalao.net', 'whois' => 'Domain Name: DALAO.NET\nRegistry Domain ID: 624445770_DOMAIN_NET-VRSN\nRegistrar WHOIS Server: whois.porkbun.com...');
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data),
),
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
echo $result;
|
const url = 'https://who.cx/api/whois_extract';
fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
body: 'domain=dalao.net&whois=Domain Name: DALAO.NET\nRegistry Domain ID: 624445770_DOMAIN_NET-VRSN\nRegistrar WHOIS Server: whois.porkbun.com...',
})
.then(response => response.text())
.then(res => console.log(res))
|