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


LWP::CurlLog - Log LWP requests as curl commands


    use LWP::CurlLog;


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;




Jacob Gelbman, <>


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.