mirror of
https://github.com/Yubico/yubikey-val.git
synced 2024-11-29 09:24:12 +01:00
23 lines
576 B
PHP
23 lines
576 B
PHP
<?php
|
|
|
|
include 'common.php';
|
|
|
|
$data = array(
|
|
#'http://ykksm.example.com/wsapi/decrypt/?otp=dteffujehknhfjbrjnlnldnhcujvddbikngjrtgh', # Valid response
|
|
'http://www.google.com:4711', # Connection times out
|
|
'http://smtp1.google.com', # Connection refused
|
|
'http://www.google.com/unknown', # 404
|
|
'http://josefsson.org/key.txt', # incorrect data, but takes some time to load
|
|
'http://klcxkljsdfiojsafjiosaiojd.org/', # No such domain
|
|
);
|
|
echo '<pre>';
|
|
|
|
$r = retrieveURLasync($data);
|
|
if ($r) {
|
|
print "ok $r";
|
|
} else {
|
|
print "err";
|
|
}
|
|
|
|
?>
|