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

NAME

WWW::REST::Simple - Just provides two most frequently used http methods: GET and POST

VERSION

version 0.002

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&param_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

Exports the get and post functions.

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 ; )

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.