The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

LWP::Simple::REST - A simple procedural interface do http verbs

VERSION

Version 0.02

SYNOPSIS

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" } );
    ...

SUBROUTINES/METHODS

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.

http_get

Sends a http get to an url on parameters

http_post

Sends a http post to an url on parameters

http_delete

Sends a delete request for the url

http_upload

Sends an Upload to url

json_get

Sends a get request, expects a json response

json_post

Sends a post request, expects a json response

AUTHOR

GONCALES, <italo.goncales at gmail.com>

RECSKY, <cartas at frederico.me>

BUGS

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.

SUPPORT

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

LICENSE AND COPYRIGHT

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