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

NAME

HTTP::Lint::UserAgent - HTTP User agent that warns for suspicious transactions

SYNOPSIS

  # 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

DESCRIPTION

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.

BUGS

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.

SEE ALSO

COPYRIGHT

Copyright 2011, Lubomir Rintel

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Lubomir Rintel lkundrak@v3.sk