in reply to LWP different protocols

LWP::Protocol::https is used when LWP is provided a URL using the https scheme (e.g. https://www.perlmonks.org/).

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

Replies are listed 'Best First'.
Re^2: LWP different protocols
by mordy7sh (Initiate) on Oct 03, 2020 at 10:18 UTC
    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]

        Does XML::LibXML use LWP, though?

        By the way, you can instruct XML::LibXML not to perform any fetches.