LWP::Debug - Online Linux Manual PageSection : 3
Updated : 2022-02-08
Source : perl v5.34.0
Note : User Contributed Perl Documentation

NAMELWP::Debug − deprecated

DESCRIPTIONThis module has been deprecated. Please see LWP::ConsoleLogger for your debugging needs. LWP::Debug is used to provide tracing facilities, but these are not used by LWP any more. The code in this module is kept around (undocumented) so that 3rd party code that happens to use the old interfaces continue to run. One useful feature that LWP::Debug provided (in an imprecise and troublesome way) was network traffic monitoring. The following section provides some hints about recommended replacements.

Network traffic monitoringThe best way to monitor the network traffic that LWP generates is to use an external TCP monitoring program. The WireShark <http://www.wireshark.org/> program is highly recommended for this. Another approach it to use a debugging HTTP proxy server and make ​LWP direct all its traffic via this one. Call $ua−>proxy to set it up and then just use LWP as before. For less precise monitoring needs just setting up a few simple handlers might do. The following example sets up handlers to dump the request and response objects that pass through LWP: ​ use LWP::UserAgent; ​ $ua = LWP::UserAgent−>new; ​ $ua−>default_header('Accept−Encoding' => scalar HTTP::Message::decodable()); ​ ​ $ua−>add_handler("request_send", sub { shift−>dump; return }); ​ $ua−>add_handler("response_done", sub { shift−>dump; return }); ​ ​ $ua−>get("http://www.example.com");

SEE ALSOLWP::ConsoleLogger, LWP::ConsoleLogger::Everywhere, LWP::UserAgent
0
Johanes Gumabo
Data Size   :   5,071 byte
man-LWP::Debug.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 182,185
Visitor ID   :     :  
Visitor IP   :   13.58.214.43   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|LWP::Debug.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|LWP::Debug.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|LWP::Debug.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|LWP::Debug.3pm|43|'br══─}─══ |'br══─}─══ )