POE::Component::Client::HTTP 0.79
Sponsored Links
POE::Component::Client::HTTP 0.79 Ranking & Summary
File size:
0.042 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1074
Date added:
2006-11-15
Publisher:
Rocco Caputo
POE::Component::Client::HTTP 0.79 description
POE::Component::Client::HTTP is a HTTP user-agent component.
SYNOPSIS
use POE qw(Component::Client::HTTP);
POE::Component::Client::HTTP->spawn(
Agent => SpiffCrawler/0.90, # defaults to something long
Alias => ua, # defaults to weeble
From => spiffster@perl.org, # defaults to undef (no header)
Protocol => HTTP/0.9, # defaults to HTTP/1.1
Timeout => 60, # defaults to 180 seconds
MaxSize => 16384, # defaults to entire response
Streaming => 4096, # defaults to 0 (off)
FollowRedirects => 2 # defaults to 0 (off)
Proxy => "http://localhost:80", # defaults to HTTP_PROXY env. variable
NoProxy => [ "localhost", "127.0.0.1" ], # defs to NO_PROXY env. variable
);
$kernel->post(
ua, # posts to the ua alias
request, # posts to uas request state
response, # which of our states will receive the response
$request, # an HTTP::Request object
);
# This is the sub which is called when the session receives a
# response event.
sub response_handler {
my ($request_packet, $response_packet) = @_[ARG0, ARG1];
# HTTP::Request
my $request_object = $request_packet->[0];
# HTTP::Response
my $response_object = $response_packet->[0];
my $stream_chunk;
if (! defined($response_object->content)) {
$stream_chunk = $response_packet->[1];
}
print(
"*" x 78, "n",
"*** my request:n",
"-" x 78, "n",
$request_object->as_string(),
"*" x 78, "n",
"*** their response:n",
"-" x 78, "n",
$response_object->as_string(),
);
if (defined $stream_chunk) {
print "-" x 40, "n", $stream_chunk, "n";
}
print "*" x 78, "n";
}
POE::Component::Client::HTTP is an HTTP user-agent for POE. It lets other sessions run while HTTP transactions are being processed, and it lets several HTTP transactions be processed in parallel.
If POE::Component::Client::DNS is also installed, Client::HTTP will use it to resolve hosts without blocking. Otherwise it will use gethostbyname(), which may have performance problems.
HTTP client components are not proper objects. Instead of being created, as most objects are, they are "spawned" as separate sessions. To avoid confusion (and hopefully not cause other confusion), they must be spawned with a spawn method, not created anew with a new one.
SYNOPSIS
use POE qw(Component::Client::HTTP);
POE::Component::Client::HTTP->spawn(
Agent => SpiffCrawler/0.90, # defaults to something long
Alias => ua, # defaults to weeble
From => spiffster@perl.org, # defaults to undef (no header)
Protocol => HTTP/0.9, # defaults to HTTP/1.1
Timeout => 60, # defaults to 180 seconds
MaxSize => 16384, # defaults to entire response
Streaming => 4096, # defaults to 0 (off)
FollowRedirects => 2 # defaults to 0 (off)
Proxy => "http://localhost:80", # defaults to HTTP_PROXY env. variable
NoProxy => [ "localhost", "127.0.0.1" ], # defs to NO_PROXY env. variable
);
$kernel->post(
ua, # posts to the ua alias
request, # posts to uas request state
response, # which of our states will receive the response
$request, # an HTTP::Request object
);
# This is the sub which is called when the session receives a
# response event.
sub response_handler {
my ($request_packet, $response_packet) = @_[ARG0, ARG1];
# HTTP::Request
my $request_object = $request_packet->[0];
# HTTP::Response
my $response_object = $response_packet->[0];
my $stream_chunk;
if (! defined($response_object->content)) {
$stream_chunk = $response_packet->[1];
}
print(
"*" x 78, "n",
"*** my request:n",
"-" x 78, "n",
$request_object->as_string(),
"*" x 78, "n",
"*** their response:n",
"-" x 78, "n",
$response_object->as_string(),
);
if (defined $stream_chunk) {
print "-" x 40, "n", $stream_chunk, "n";
}
print "*" x 78, "n";
}
POE::Component::Client::HTTP is an HTTP user-agent for POE. It lets other sessions run while HTTP transactions are being processed, and it lets several HTTP transactions be processed in parallel.
If POE::Component::Client::DNS is also installed, Client::HTTP will use it to resolve hosts without blocking. Otherwise it will use gethostbyname(), which may have performance problems.
HTTP client components are not proper objects. Instead of being created, as most objects are, they are "spawned" as separate sessions. To avoid confusion (and hopefully not cause other confusion), they must be spawned with a spawn method, not created anew with a new one.
POE::Component::Client::HTTP 0.79 Screenshot
Advertisements
POE::Component::Client::HTTP 0.79 Keywords
HTTP
POE
HTTP 0.79
defaults to
response
defaults
request
n
X
User-Agent
POE::Component::Client::HTTP
POEComponentClientHTTP
POE::Component::Client::HTTP 0.79
Libraries
Programming
Bookmark POE::Component::Client::HTTP 0.79
POE::Component::Client::HTTP 0.79 Copyright
WareSeeker periodically updates pricing and software information of POE::Component::Client::HTTP 0.79 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of POE::Component::Client::HTTP 0.79 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
response auto insurance
first response
myspace defaults
response link
response to intervention
defaults layouts
response time
american medical response
mortgage defaults
request free catalogs online
outlook defaults to offline
search http
response trigger
what is response to intervention
credit default swaps
response magazine
video response
student loan defaults
Related Software
POE::Component::Client::FTP is a Perl module that implements an FTP client POE Component. Free Download
POE::Component::Client::SMTP is a Perl module for asynchronous mail sending with POE. Free Download
POE::Component::Client::Halo is an implementation of the Halo query protocol. Free Download
POE::Component::Client::Ping is a non-blocking ICMP ping client. Free Download
POE::Component::Client::Traceroute is a non-blocking traceroute client. Free Download
POE::Component::Client::Rcon is an implementation of the Rcon remote console protocol. Free Download
POE::Component::Client::TCPMulti is a high performance client TCP library. Free Download
POE::Component::Server::HTTP is a foundation of a POE HTTP Daemon. Free Download
Latest Software
Popular Software
Favourite Software