Skip to content

bessarabov/LWP-Attempt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME
    LWP::Attempt - repeat GET or POST several times in case of error

VERSION
    Version 0.01

SYNOPSIS
        use LWP::Attempt;

        my $la = LWP::Attempt->new(
            tries => 5,     # default 3
            delay => 2,     # default 1
        );

        my $content = $la->get('http://bessarabov.ru/');

        $la->post(
            'http://bessarabov.ru/',
            params => [
                param1 => 'value1',
                param2 => 'value2',
            ],
        );

METHODS
  new
        my $la = LWP::Attempt->new(
            tries => 5,             # default 3
            delay => 2,             # default 1
            agent => 'MyModule'     # default is "LWP::Attempt/$VERSION "
        );

  get
        my $content = $la->get('http://bessarabov.ru/');

  post
        $la->post(
            'http://bessarabov.ru/',
            params => [
                param1 => 'value1',
                param2 => 'value2',
            ],
        );

AUTHOR
    Ivan Bessarabov, `<ivan at bessarabov.ru>'

BUGS
    Please report any bugs or feature requests to `bug-lwp-attempt at
    rt.cpan.org', or through the web interface at
    http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LWP-Attempt. I will be
    notified, and then you'll automatically be notified of progress on your
    bug as I make changes.

SOURCE CODE
    The source code for this module is hosted on GitHub
    http://github.com/bessarabov/LWP-Attempt

SUPPORT
    You can find documentation for this module with the perldoc command.

        perldoc LWP::Attempt

    You can also look for information at:

    * RT: CPAN's request tracker
        http://rt.cpan.org/NoAuth/Bugs.html?Dist=LWP-Attempt

    * AnnoCPAN: Annotated CPAN documentation
        http://annocpan.org/dist/LWP-Attempt

    * CPAN Ratings
        http://cpanratings.perl.org/d/LWP-Attempt

    * Search CPAN
        http://search.cpan.org/dist/LWP-Attempt/

ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
    Copyright 2012 Ivan Bessarabov.

    This program is free software; you can redistribute it and/or modify it
    under the terms of either: the GNU General Public License as published
    by the Free Software Foundation; or the Artistic License.

    See http://dev.perl.org/licenses/ for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages