MAC vendor lookup: Difference between revisions
→{{header|PHP}}: Add implementation.
(→{{header|PHP}}: Add implementation.) |
|||
Line 890:
</pre>
=={{header|
{{trans|AppleScript}}
<lang php><?php
$macList = array("88:53:2E:67:07:BE", "D4:F4:6F:C9:EF:8D",
"FC:FB:FB:01:FA:21", "4c:72:b9:56:fe:bc", "00-14-22-01-23-45");
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
▲ (client "api.macvendors.com" 80
foreach ($macList as $burger) {
curl_setopt($curl, CURLOPT_URL, "$apiRoot/$burger");
echo(curl_exec($curl));
echo("\n");
sleep(2);
"Intel Corporate"▼
}
curl_close($curl);
?></lang>
"Apple, Inc."▼
{{Out}}
Cisco Systems, Inc
PEGATRON CORPORATION
Dell Inc.</pre>
=={{header|PowerShell}}==
|