Metadata::HTTP - metadata class for HTTP log records
use Metadata::HTTP ... $i=new Metadata::HTTP; open(IN, $logfile); while($i->read('IN')) { print $i->get('agent'),"\n"; } ...
The Metadata::HTTP class allows the handling of HTTP log records as metadata objects using the Metadata::Base class.
The following fields are set after using the read method:
host ident authuser date day month year time hour min sec timezone (in format +/-NNNN) status bytes request - 'GET /foo' etc
Optionally set: referer (if supported by log) agent (if supported by log) http-version (if present) command - GET, POST, etc. path - operand to command
An optional hash of options can be given to the constructor to set various options. There is only one Metadata::HTTP options defined:
This class has a separate debug class / object method that works in the same fashion as the Metadata::Base method debug. Setting it here also sets the debugging on the base Metadata::Base object too.
The methods here describe the differences from the Metadata::Base class methods.
Reads a single line from the file descriptor and uses it to fill the fields of the HTTP metadata object.
Returns the original HTTP line used in the parsing.
Metadata::Base
By Dave Beckett - http://purl.org/net/dajobe/
Copyright (C) 1997-2001 Dave Beckett - http://purl.org/net/dajobe/ All rights reserved.
2 POD Errors
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
=back doesn't take any parameters, but you said =back 4
To install Metadata::Base, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Metadata::Base
CPAN shell
perl -MCPAN -e shell install Metadata::Base
For more information on module installation, please visit the detailed CPAN module installation guide.