shlomif / perl-XML-LibXML

The XML-LibXML CPAN Distribution for Processing XML using the libxml2 library
https://metacpan.org/release/XML-LibXML
Other
17 stars 35 forks source link

Doc-patch regarding libxml2 (non-)support for HTTPS #38

Closed jmacdotorg closed 4 years ago

jmacdotorg commented 4 years ago

It seems that the underlying libxml2 library does not support loading files (whether XML document or schema) over HTTPS. For evidence, see recent comments here, from myself and others: https://rt.cpan.org/Ticket/Display.html?id=98024

Since HTTPS is an increasingly common URL schema (especially compared to circa-2000, when libxml was first developed), I feel that this lack is worth noting in XML::LibXML's documentation. (And that's probably all that this Perl module can hope to do about it, really...)

pali commented 4 years ago

In fact, libxml2 supports only ftp:// and http:// network protocols. Plus it supports gz and xz compressed files (see xmlIO.c file in libxml2 source code). Maybe you could update documentation to be more explicit?

But via xmlRegisterInputCallbacks function provided by libxml2 you can register also your own plugins for other (network) protocols. So adding https support in perl's XML::LibXML is possible. Any volunteer for implementing https support? :-)

shlomif commented 4 years ago

merged, thanks!