GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Metadata::HTTP(3) User Contributed Perl Documentation Metadata::HTTP(3)

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

new [OPTIONS]
An optional hash of options can be given to the constructor to set various options. There is only one Metadata::HTTP options defined:
DEBUG
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.
read HANDLE
Reads a single line from the file descriptor and uses it to fill the fields of the HTTP metadata object.
format [URL]
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.

Hey! The above document had some coding errors, which are explained below:
Around line 209:
You forgot a '=back' before '=head1'
Around line 225:
=back doesn't take any parameters, but you said =back 4
2001-01-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.