Agent-TCLI-Package-Net
view release on metacpan or search on metacpan
lib/Agent/TCLI/Package/Net/HTTP.pm view on Meta::CPAN
package Agent::TCLI::Package::Net::HTTP;
#
# $Id: HTTP.pm 74 2007-06-08 00:42:53Z hacker $
#
=pod
=head1 NAME
Agent::TCLI::Package::Net::HTTP
=head1 SYNOPSIS
From within a TCLI Agent session:
tget url=http://example.com/bad_request resp=404
=head1 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.
=head1 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.
=cut
use warnings;
use strict;
use Object::InsideOut qw(Agent::TCLI::Package::Base);
use POE;
use POE::Component::Client::HTTP;
use POE::Component::Client::Keepalive;
use HTTP::Request::Common qw(GET POST);
use Agent::TCLI::Command;
use Agent::TCLI::Parameter;
use Getopt::Lucid qw(:all);
our $VERSION = '0.030.'.sprintf "%04d", (qw($Id: HTTP.pm 74 2007-06-08 00:42:53Z hacker $))[2];
=head2 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.
=over
=cut
#my @session :Field
# :Weak
# :Type('POE::Session');
=item poco_cm
A POE connection manager session.
B<cm> will only accept POE::Component::Client::Keepalive type values.
=cut
my @poco_cm :Field
:All('poco_cm')
:Type('POE::Component::Client::KeepaliveRaw' );
=item poco_http
The POE http client.
B<poco_http> will only accept POE::Component::Client::HTTP type values.
=cut
my @poco_http :Field
:All('poco_http')
:Type('POE::Component::Client::HTTPRaw' );
=item user_agents
An array of user_agents to use.
B<user_agents> will only accept ARRAY type values.
=cut
my @user_agents :Field
:All('user_agents')
:Type('ARRAY' );
=item cookie_jar
An place to keep cookies
=cut
my @cookie_jar :Field
:All('cookie_jar');
=item id_count
( run in 0.631 second using v1.01-cache-2.11-cpan-39bf76dae61 )