LWP::Simple::REST - A simple procedural interface do http verbs
Version 0.02
This module is a simple wrapper for simple http requests. It has two groups of wrappers, http_ and json_. The first are to use with plain answers, the second one assumes a json answer and already decode it.
This is a classical example, to post a information to a server.
use LWP::Simple::REST qw/http_post/; my $foo = http_post( "http://example.org", { example => "1", show => "all" } ); ...
All methods receive an url and a hashref with parameters. Now you can only send normal parameters, in future is possible to send json encoded parameters on the body.
Also there is a method to upload files to the server, really simple, just in hands for small files.
Sends a http get to an url on parameters
Sends a http post to an url on parameters
Sends a delete request for the url
Sends an Upload to url
Sends a get request, expects a json response
Sends a post request, expects a json response
GONCALES, <italo.goncales at gmail.com>
<italo.goncales at gmail.com>
RECSKY, <cartas at frederico.me>
<cartas at frederico.me>
Please report any bugs or feature requests to bug-lwp-simple-rest at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LWP-Simple-REST. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-lwp-simple-rest at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc LWP::Simple::REST
Usually we are on irc on irc.perl.org.
#sao-paulo.pm
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=LWP-Simple-REST
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/LWP-Simple-REST
CPAN Ratings
http://cpanratings.perl.org/d/LWP-Simple-REST
Copyright 2014 GONCALES Copyright 2014 RECSKY
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:
http://www.perlfoundation.org/artistic_license_2_0
To install LWP::Simple::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LWP::Simple::REST
CPAN shell
perl -MCPAN -e shell install LWP::Simple::REST
For more information on module installation, please visit the detailed CPAN module installation guide.