HTTP-Handle
view release on metacpan or search on metacpan
testing/handle2 view on Meta::CPAN
=pod
=head1 NAME
HTTP::Handle - HTTP Class designed for streaming
=head1 SYNOPSIS
use HTTP::Handle;
my $http = HTTP::Handle->new( uri => "http://www.google.com/" );
$http->connect();
my $fd = $http->fd();
while (<$fd>) {
print "--> $_";
}
=head1 VERSION
Version: 0.1
$Id: Handle.pm,v 1.1 2004/05/01 07:38:03 psionic Exp $
=head1 DESCRIPTION
The C<HTTP::Handle> module allows you to make HTTP requests and handle
the data yourself. The general ideas is that you use this module to make
a HTTP request and handle non-header data yourself. I needed such a
feature for my mp3 player to listen to icecast streams.
=cut
package HTTP::Handle;
use strict;
use IO::Handle;
use IO::Socket;
use URI;
my $VERSION = "0.1";
my $ERROR;
=pod
=over 4
=item HTTP::Handle->new()
Create a new HTTP::Handle object thingy.
=cut
sub new {
my $class = shift;
my $self = {
data_timeout => 5,
follow_redirects => 1,
http_request => {
"User-Agent" => "HTTP-Handle/$VERSION",
},
};
( run in 0.424 second using v1.01-cache-2.11-cpan-39bf76dae61 )