Captcha-AreYouAHuman
view release on metacpan or search on metacpan
lib/Captcha/AreYouAHuman.pm view on Meta::CPAN
if ($params{"client_ip"} eq "") {
$self->errorLog("Called Captcha::AreYouAHuman::scoreResult without a client_ip");
return 0;
} else {
$client_ip = $params{"client_ip"};
}
# Make the request
my $ua = LWP::UserAgent->new;
my $req = HTTP::Request->new(POST => 'https://' . $server .
'/ayahwebservices/index.php/ayahwebservice/scoreGame');
$req->content_type('application/x-www-form-urlencoded');
$req->content('session_secret=' . uri_escape($session_secret) . '&client_ip=' .
uri_escape($client_ip));
my $res = $ua->request($req);
if ($res->is_success) {
# JSON decode and evaluate result
my $results;
eval {
( run in 0.675 second using v1.01-cache-2.11-cpan-de7293f3b23 )