Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Changes
Octocat-spinner-32 MANIFEST
Octocat-spinner-32 Makefile.PL
Octocat-spinner-32 README
Octocat-spinner-32 TODO
Octocat-spinner-32 ignore.txt
README
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.

Something went wrong with that request. Please try again.