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 log file for curl commands. The default log file location is in ~/curl.log, but you can change it by setting the $log_file package variable in a begin block before including the library.
https://metacpan.org/pod/LWP::CurlLog
https://github.com/zorgnax/lwpcurllog
Jacob Gelbman, <gelbman@gmail.com>
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.
To install LWP::CurlLog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LWP::CurlLog
CPAN shell
perl -MCPAN -e shell install LWP::CurlLog
For more information on module installation, please visit the detailed CPAN module installation guide.