
Net::Scan::HTTP::Server::Methods - retrieve allowed http methods

use Net::Scan::HTTP::Server::Methods;
my $host = $ARGV[0];
my $scan = Net::Scan::HTTP::Server::Methods->new({
host => $host,
timeout => 5
});
my $results = $scan->scan;
print "$host $results\n" if $results;

A simple module for retrieve allowed http methods.

The constructor. Given a host returns a Net::Scan::HTTP::Server::Methods object:
my $scan = Net::Scan::HTTP::Server::Methods->new({
host => '127.0.0.1',
port => 80,
timeout => 5,
http_version => '1.1',
user_agent => 'Mozilla/5.0',
debug => 0
});
Optionally, you can also specify :
Remote port. Default is 80;
Default is 8 seconds;
Set the HTTP protocol version. Default is '1.1'.
Set the product token that is used to identify the user agent on the network. The agent value is sent as the "User-Agent" header in the requests. Default is 'Mozilla/5.0'.
Set to 1 enable debug. Debug displays "connection refused" when an HTTP server is unrecheable. Default is 0;
Scan the target.
$scan->scan;

LW2 http://www.wiretrip.net/rfp/lw.asp
RFC 2616

Matteo Cantoni, <mcantoni@cpan.org>

You may distribute this module under the terms of the Artistic license. See Copying file in the source distribution archive.
Copyright (c) 2006, Matteo Cantoni