Log::Any::For::LWP

Add logging to LWP
Download

Log::Any::For::LWP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Steven Haryanto
  • Publisher web site:
  • http://search.cpan.org/~sharyanto/

Log::Any::For::LWP Tags


Log::Any::For::LWP Description

Log::Any::For::LWP is a Perl module that just bundles Net::HTTP::Methods::patch::log_request and LWP::UserAgent::patch::log_response together.SYNOPSIS use Log::Any::For::LWP -log_request = > 1, # optional, default 1 -log_response_header = > 1, # optional, default 1 -log_response_body = > 1, # optional, default 0 ;Sample script and output: % TRACE=1 perl -MLog::Any::App -MLog::Any::For::LWP -MLWP::Simple \ -e'get "http://www.google.com/"' HTTP request (proto=http, len=134): GET / HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Host: www.google.com User-Agent: LWP::Simple/6.00 libwww-perl/6.04 HTTP response header: 302 Moved Temporarily Cache-Control: private Connection: close Date: Tue, 17 Jul 2012 04:39:10 GMT ... HTTP request (proto=http, len=136): GET / HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Host: www.google.co.id User-Agent: LWP::Simple/6.00 libwww-perl/6.04 HTTP response header: 200 OK Cache-Control: private, max-age=0 Connection: close Date: Tue, 17 Jul 2012 04:39:10 GMT ...Product's homepage


Log::Any::For::LWP Related Software