1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 09:24:12 +01:00
yubikey-val/tests/test-multi.php
Simon Josefsson 897ef6e6b3 Move.
2009-12-15 21:34:16 +00:00

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";
}
?>