|
Metadata::HTTP - metadata class for HTTP log records |
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 the Metadata::Base manpage 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
The methods here describe the differences from the the Metadata::Base manpage class methods.
By Dave Beckett - http://purl.org/net/dajobe/
Copyright (C) 1997-2001 Dave Beckett - http://purl.org/net/dajobe/ All rights reserved.
|
Metadata::HTTP - metadata class for HTTP log records |