Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
I hadn't thought to set LWP::Debug (and did you know that Perl and LWP doesn't deal with LWP::Debug at all?), but now I have, and am getting much the same result when the proxy statement is removed. Without proxy, the output from LWP::Debug is:
LWP::UserAgent::request: () LWP::UserAgent::send_request: GET ftp://user:password@10.10.10.10/outg +oing/ LWP::UserAgent::_need_proxy: Not proxied LWP::UserAgent::send_request: ftp URLs are among LWP::UserAgent=HASH(0 +x83ae480)'s allowed protocols (ftp http) LWP::MediaTypes::read_media_types: Reading media types from /my/lib/pe +rl5/site_perl/5.6.1/LWP/media.types LWP::Protocol::ftp::request: () LWP::Protocol::MyFTP::new: ()
and here the debugger dies, along with the script.

With the proxy statement left in, I get:

LWP::UserAgent::request: () LWP::UserAgent::send_request: GET ftp://user:password@10.10.10.10/outg +oing/ LWP::UserAgent::_need_proxy: Proxied to http://www.nunya.biz:8080 LWP::UserAgent::send_request: http URLs are among LWP::UserAgent=HASH( +0x83d28b0)'s allowed protocols (ftp http) LWP::Protocol::http::request: () LWP::Protocol::collect: read 315 bytes LWP::Protocol::collect: read 4096 bytes LWP::Protocol::collect: read 4096 bytes LWP::Protocol::collect: read 2954 bytes LWP::Protocol::collect: read 1460 bytes LWP::Protocol::collect: read 660 bytes LWP::Protocol::collect: read 32 bytes LWP::UserAgent::request: Simple response: OK
and the debugger stays alive and ready to proceed.

On the off-chance this was an artifact of the debugger, I ran without the -d flag and sprinkled in some print statements. This didn't produce any change--LWP::Debug gave the same output and I died in the same place.

So at this point, I'm slightly stumped. I suppose my next move is either to give up and say "What the heck do I care? It works, doesn't it?" or step laboriously through the LWP code itself to see where it dies.

I'm certainly open to a better idea than either of those two.

Afterthought: I'm running 5.6.1. LWP is version 5.63.

adamsj

They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen


In reply to Following up: Re: LWP oddity by adamsj
in thread LWP oddity by adamsj

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (9)
    As of 2014-07-11 21:15 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      When choosing user names for websites, I prefer to use:








      Results (235 votes), past polls