NAME
WWW::REST::Simple - Just provides two most frequently used http methods: GET and POST
VERSION
version 0.001
SYNOPSIS
use WWW::REST::Simple qw/get post/;
# just GET a url
my $content = get('http://www.example.com/?param_x=1');
my $args = { param_x => 1, param_y => 2 };
# GET some url like 'http://www.example.com/?param_x=1¶m_y=2
my $content = get('http://www.example.com/', $args);
# or by POST:
my $content = post('http://www.example.com/', $args);
EXPORTS
Exports the get
and post
functions.
No prividing of other methods like DELETE, PUT etc.
No header can be passed by.
So if you need more powerful one, go to WWW::REST or REST::Client, or just search the keyword 'REST' in CPAN.
Call it Simple it's really simple ;)
AUTHOR
Bin Joy <perlxruby@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Bin Joy.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.