Plient is a Perl wrapper to clients like curl, wget, LWP and HTTP::Lite, aiming to supply a uniform way for users.
It's intended to use in situations where you don't want to bind your applications to one specific client. e.g. forcing users to install curl even when some of them already have wget installed.
Plient will try its best to use clients available.
Plient is a very young project, only a subset of HTTP functionality is implemented currently.
SYNOPSIS
use Plient qw/plient plient_support/;
my $content = plient( 'get', 'http://cpan.org' ); # get http://cpan.org
if ( plient_support( 'http', 'post' ) ) {
my $content = plient(
'post',
'http://foo.com',
{
body => {
title => 'foo',
body => 'bar',
}
}
);
}
# or if ( my $http_post = plient_support( 'http', 'post' ) ) { my $content = $http_post->( 'http://foo.com', { body => { title => 'foo', body => 'bar', } } ); }
Product's homepage
Requirements:
· Perl