Eric Hacker > Agent-TCLI-Package-Net-0.031 > Agent::TCLI::Package::Net::HTTP

Download:
Agent-TCLI-Package-Net-0.031.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.030.0074   Source  

NAME ^

Agent::TCLI::Package::Net::HTTP

SYNOPSIS ^

From within a TCLI Agent session:

tget url=http://example.com/bad_request resp=404

DESCRIPTION ^

This module provides a package of commands for the TCLI environment. Currently one must use the TCLI environment (or browse the source) to see documentation for the commands it supports within the TCLI Agent.

Makes standard http requests, either testing that a response code was given or receive the response code back.

INTERFACE ^

This module must be loaded into a Agent::TCLI::Control by an Agent::TCLI::Transport in order for a user to interface with it.

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.

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 <hacker at cpan.org>

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.

syntax highlighting: