develooper Front page | perl.perl5.porters | Postings from December 2021

Re: OpenSSL alternative support WAS Re: Pre-RFC: supporthttpsout-of-the-box

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
December 10, 2021 21:31
Subject:
Re: OpenSSL alternative support WAS Re: Pre-RFC: supporthttpsout-of-the-box
Message ID:
CA+vYcVyeN5jRjQOgQgH5iFNdd6dbEtFr7ga6cNorRBE8rtMA3A@mail.gmail.com
On Fri, Dec 10, 2021 at 12:51 PM Nicholas Clark <nick@ccl4.org> wrote:
>
> On Fri, Dec 10, 2021 at 10:40:05AM -0600, Craig A. Berry wrote:

> > I like the urlmon solution since it doesn't even involve spawning an
> > external command, but Win32::API is not in core, is it?  So bitsadmin
> > might be the simplest and most reliable solution.
>
> Assuming Microsoft's online fine manuals are accurate, bitsadmin is only
> Windows 10 or later, whereas urlmon is XP or later.
>
> I don't think that bundling Win32::API is a great idea, but a minimal XS
> module to wrap what we need does feel like a win here. There doesn't seem
> to be one on CPAN (yet).

The functions in here:

https://github.com/Perl/perl5/blob/blead/cpan/Win32/Win32.xs

seem to consist mostly of random things people needed to bootstrap
other things.  Arguably we now need a Win32::URLDownloadToFile() to
bootstrap something.  Or maybe Win32::InternetReadFile()[1]. If it's
killing a sacred cow to put something else in Win32.xs, someone should
speak up.

> Not only am I not competent to write such a thing, I can't even volunteer
> to have a go at something like "Markov chains and a regression test", as
> I don't have access to anything Win32 to try it out.

Damn.  I have access so I have no excuses :-).  Well, other than only
ever having dealt with the Win32 API in Visual Basic, and that a very
long time ago.  Let me see how much trouble I can get myself into.

[1] https://docs.microsoft.com/en-us/windows/win32/api/wininet/nf-wininet-internetreadfile

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About