HTTP-Handle
view release on metacpan or search on metacpan
=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.2
$Id: Handle.pm,v 1.6 2004/07/03 08:44:53 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 Socket;
use URI;
my $VERSION = "0.2";
=pod
=over 4
=item HTTP::Handle->new()
Create a new HTTP::Handle object thingy.
Arguments possible:
=over 4
=item url => "http://www.google.com/"
Sets the initial URL to connect to.
=item follow_redirects => [ 0 | 1 ]
Automatically follow HTTP redirects. This defaults to true (1). Set to 0 to disable this.
=item http_request => HASHREF
( run in 1.348 second using v1.01-cache-2.11-cpan-140bd7fdf52 )