NAME
Agent::TCLI::Package::Net:HTTP
VERSION
This document describes Agent::TCLI::Package::Net::HTTP version 0.0.1
SYNOPSIS
tget url=http://example.com/bad_request resp=404
DESCRIPTION
Makes stadard http requests, either testing that a response code was given or receive the response code back.
ATTRIBUTES
The following attributes are accessible through standard <attribute> methods unless otherwise noted.
These attrbiutes are generally internal and are probably only useful to someone trying to enhance the functionality of this Package module.
poco_cm
A POE connection manager session. cm will only accept POE::Component::Client::Keepalive type values.
poco_http
The POE http client. poco_http will only accept POE::Component::Client::HTTP type values.
user_agents
An array of user_agents to use. user_agents will only accept ARRAY type values.
cookie_jar
An place to keep cookies
id_count
A running count of internal request IDs to use id_count will only accept NUMERIC type values.
METHODS
Most of these methods are for internal use within the TCLI system and may be of interest only to developers trying to enhance TCLI.
new ( hash of attributes )
Usually the only attributes that are useful on creation are the verbose and do_verbose attrbiutes that are inherited from Agent::TCLI::Base.
_preinit
This private Object::InsideOut (OIO) method is used for object initialization. It establishes the POE::Session and the POE alias used.
_init
This private OIO method is used for object initialization. Here the commands and parameters are defined in YAML.
_start
This POE event handler is called when POE starts up a Package.
_stop
This POE event handler is called when POE stops a Package.
show
This POE event handler executes the show commands.
INHERITED METHODS
This module is an Object::InsideOut object that inherits from Agent::TCLI::Package::Base. It inherits methods from both. Please refer to their documentation for more details.
AUTHOR
Eric Hacker <perl.mod at erichacker.com>
BUGS
SHOULDS and MUSTS are currently not enforced.
Test scripts not thorough enough.
Probably many others.
LICENSE
Copyright (c) 2007, Alcatel Lucent, All rights resevred.
This package is free software; you may redistribute it and/or modify it under the same terms as Perl itself.