Recent versions of LWP::Simple enable 'verify_hostname' by default.
This breaks https get requests in a nasty way such that any page relying upon the stylesheet results in a nasty perl error.
We should be using LWP::UserAgent and setting this ignorance explicitly, or even better, setting a 'Certificate Authority' path to enable proper hostname verification.
Created attachment 27899 [details] [review]
Bug 12172: Use LWP::UserAgent for remote XSLT fetch
This patch re-enables proper handling of https hosted remote xslt
style sheets with recent releases of LWP (libwww-perl-5.837 and
prior do not need this patch).
Initial patch cleans up code a little, and swaps from LWP::Simple to LWP::UserAgent to allow for explicit declaration of ssl options.
It then disables verify_hostname to do the 'get'.
I could not, in my testing come up with a reasonable solution to set CA Certificate path to use with the module.
This may not be required given bug 11826. Just testing that it works OK in there.
Fixed as a side effect of bug 11826
*** This bug has been marked as a duplicate of bug 11826 ***
I will probably reuse a little bit of your code here in bug 12758.