Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

LWP different protocols

by mordy7sh (Initiate)
on Oct 02, 2020 at 19:25 UTC ( #11122490=perlquestion: print w/replies, xml ) Need Help??

mordy7sh has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm using perl and have a failure that another user - running the same test (with it's own account) is passing. The failure is since my run don't find I ran strace for both of us and saw that my run loads ...../LWP/Protocol/ this (I beleive) eventually tries to open libss.0.9.8 that is not present on the directory. The other user run - opens LWP/Protocol/ and succeed. The question is: What can make perl loads one protocol over the other? Is there some environment variable that affects it (e.g. putting http_proxy environment variable) Thanks, mordy

Replies are listed 'Best First'.
Re: LWP different protocols
by ikegami (Pope) on Oct 03, 2020 at 05:36 UTC

    LWP::Protocol::https is used when LWP is provided a URL using the https scheme (e.g.

    LWP::Protocol::file is used when LWP is provided a URL using the file scheme (e.g. file:///C:/Users/ikegami/Desktop/doc.txt).

      Hi, Thanks for replaying. The issue is that it happens during xml::xpath findallnodes. The xml document have a dtd. None oh those have specific url embedded. So I donít understand which url itís tiring to access or why my college use the file and mine tries to use the http. Can it be connected to some environment variable? I noticed mine have https_proxy and his environment does not. If you know the source for xml library that actually select which protocol to use. Again, thanks a lot for replaying. I know itís not that easy to read someone else problem... Mordy
        I donít understand which [URL] itís [trying] to access

        LWP::ConsoleLogger can tell you that.


        If libxml2 is involved, note that it can consult external entities based on the XML Catalogues configured on the system.

        map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re: LWP different protocols
by Fletch (Chancellor) on Oct 03, 2020 at 06:24 UTC

    Your question is so context free that no one is going to be able to give you anything more than extremely vague generalities (as you've gotten so far). You might as well have asked if we've seen your favourite TV show. You know, the one with that guy that was in that other thing. He wears that shirt with the whatsit on it.

    See Short, Self-Contained, Correct Example

    (No, not that one. The other guy with that other shirt. Obviously . . .)

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

Re: LWP different protocols
by Anonymous Monk on Oct 03, 2020 at 05:07 UTC

    What can make perl loads one protocol over the other?

    perl is simply running the program its been asked to run

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11122490]
Approved by haukex
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2020-11-29 22:51 GMT
Find Nodes?
    Voting Booth?

    No recent polls found