WWW::REST::Simple - Just provides two most frequently used http methods: GET and POST
version 0.002
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, here we just take args as form data my $content = post('http://www.example.com/', $args);
Exports the get and post functions.
get
post
No other methods like DELETE, PUT etc. provided.
No any 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 ; )
Bin Joy <perlxruby@gmail.com>
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.
To install WWW::REST::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::REST::Simple
CPAN shell
perl -MCPAN -e shell install WWW::REST::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.