I'm very new to using WWW::Mechanize and LWP and am wondering: What are people using to debug LWP? The official documentation states that "LWP::Debug 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 happen to use the old interfaces continue to run.". When I search the web for examples of LWP debug, all of them seem to use

use LWP::Debug qw(+);,

which does nothing when I put it in my code, and based on the quote I just posted above I guess I shouldn't expect it to. All of those examples must have been created before LWP::Debug functionality was removed. The page I quoted above suggests WireShark as a replacement, but that won't work for me because I need to monitor HTTPS POST data unencrypted, and WireShark views data after it's already been encrypted. I have httpsfox running in Firefox and can see exactly what the POST data is; I just need something equivalent for LWP/Mechanize to compare against.


In reply to LWP/WWW::Mechanize debug by Special_K

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.