CGI::CurlLog - Log CGI parameters as curl commands
use CGI::CurlLog;
This module can be used to log CGI parameters as curl commands so you can redo requests to CGI scripts on your server. Just include a statement "use CGI::CurlLog;" to the top of your CGI script and then check the log file for curl commands. The default log file location is STDOUT, but you can change it like this:
use CGI::CurlLog file => "~/curl.log";
You can set whether to include the response in the log like this:
use CGI::CurlLog response => 1;
You can include timing details about how long the cgi script took to run like this:
use CGI::CurlLog timing => 1;
https://metacpan.org/pod/CGI::CurlLog
https://github.com/zorgnax/cgicurllog
Jacob Gelbman, <gelbman@gmail.com>
Copyright (C) 2016 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 CGI::CurlLog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::CurlLog
CPAN shell
perl -MCPAN -e shell install CGI::CurlLog
For more information on module installation, please visit the detailed CPAN module installation guide.