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


Manual Reference Pages  -  METADATA::HTTP (3)

.ds Aq ’

NAME

Metadata::HTTP - metadata class for HTTP log records

CONTENTS

SYNOPSIS



  use Metadata::HTTP
  ...
  $i=new Metadata::HTTP;
  open(IN, $logfile);
  while($i->read(IN)) {
    print $i->get(agent),"\n";
  }
  ...



DESCRIPTION

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 <B>readB> 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

CONSTRUCTOR

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 <B>debugB>. Setting it here also sets the debugging on the base Metadata::Base object too.

METHODS

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.

SEE ALSO

Metadata::Base

AUTHOR

By Dave Beckett - http://purl.org/net/dajobe/

COPYRIGHT

Copyright (C) 1997-2001 Dave Beckett - http://purl.org/net/dajobe/ All rights reserved.

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 209: You forgot a ’=back’ before ’=head1’
Around line 225: =back doesn’t take any parameters, but you said =back 4
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 METADATA::HTTP (3) 2001-01-09

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