File-VirusScan
view release on metacpan or search on metacpan
lib/File/VirusScan/Engine/Daemon/FPROT/V4.pm view on Meta::CPAN
return File::VirusScan::Result->error("Could not flush socket: $err");
}
# Fetch HTTP Header
## Maybe dropped, if no validation checks are to be made
while (my $output = $sock->getline) {
if($output =~ /^\s*$/) {
last; # End of headers
#### Below here: Validating the protocol
#### If the protocol is not recognized, it's assumed that the
#### endpoint is not an F-Prot demon, hence,
#### the next port is probed.
} elsif($output =~ /^HTTP(.*)/) {
my $h = $1;
next SEARCH_DEMON unless $h =~ m!/1\.0\s+200\s!;
} elsif($output =~ /^Server:\s*(\S*)/) {
next SEARCH_DEMON if $1 !~ /^fprotd/;
}
}
# Parsing XML results
( run in 1.543 second using v1.01-cache-2.11-cpan-2b1a40005be )