1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-12-01 15:24:16 +01:00
yubikey-val/tests/test-multi.php

23 lines
576 B
PHP
Raw Normal View History

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