HTTP::Lint::UserAgent - HTTP User agent that warns for suspicious transactions
# Do not overload LWP::UserAgent::request; use HTTP::Lint::UserAgent qw/:noinject/; new HTTP::Lint::UserAgent->request ($request); # Do overload LWP::UserAgent::request; use HTTP::Lint::UserAgent; use LWP::UserAgent; new LWP::UserAgent->request ($request); # Overload LWP::UserAgent::request without script modification; perl -MHTTP::Lint::UserAgent client.pl
HTTP::Lint::UserAgent subclasses LWP::UserAgent, providing request method that checks each transaction and messages involved when it finishes with HTTP::Lint and produces warning on console (with warn).
Unless loaded with :noinject, it replaces the request method in LWP::UserAgent package, transparently intercepting all requests.
It's hackish, use it only for debugging and avoid using it in production code!
Not much can go wrong, but it's just not nice.
LWP::UserAgent -- The User Agent
HTTP::Lint -- Checker module
Copyright 2011, Lubomir Rintel
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Lubomir Rintel lkundrak@v3.sk
lkundrak@v3.sk
To install HTTP::Lint, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Lint
CPAN shell
perl -MCPAN -e shell install HTTP::Lint
For more information on module installation, please visit the detailed CPAN module installation guide.