NAME

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

VERSION

Version 0.09

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 on hands for small files.

http_get

Sends a http get and returns the content of this request

http_post

Sends a http post and returns the content of this request

http_delete

Sends a delete request for the url

http_head

Sends a head request for the url, and unblesses the headers's object allowing access the header

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, <recsky at cpan.org>

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