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

NAME

LWP::CurlLog - Log LWP requests as curl commands

SYNOPSIS

    use LWP::CurlLog;

DESCRIPTION

This module can be used to log LWP requests as curl commands so you can redo requests the perl script makes, manually, on the command line. Just include a statement "use LWP::CurlLog;" to the top of your perl script and then check the output for curl commands.

The default location is to STDERR, but you can change it by setting the file option on the use line like this:

    use LWP::CurlLog file => "~/curl.log";

The log will include the response in it's output. If that's unwanted, do this:

    use LWP::CurlLog response => 0;

You can include timing information like this:

    use LWP::CurlLog timing => 1;

METACPAN

https://metacpan.org/pod/LWP::CurlLog

REPOSITORY

https://github.com/zorgnax/lwpcurllog

AUTHOR

Jacob Gelbman, <gelbman@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2017 by Jacob Gelbman

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.2 or, at your option, any later version of Perl 5 you may have available.