develooper Front page | perl.perl5.porters | Postings from January 2022

Re: Win32::HttpGetFile (Re: OpenSSL alternative support WAS Re:Pre-RFC: support httpsout-of-the-box)

Thread Next
From:
Craig A. Berry
Date:
January 17, 2022 23:41
Subject:
Re: Win32::HttpGetFile (Re: OpenSSL alternative support WAS Re:Pre-RFC: support httpsout-of-the-box)
Message ID:
CA+vYcVxn80G=3DbA7HO_7oEfBf_yQv5L7rHQ9Dvja7UJgVADxg@mail.gmail.com
On Fri, Dec 17, 2021 at 5:36 PM Craig A. Berry <craig.a.berry@gmail.com> wrote:
>
> On Fri, Dec 10, 2021 at 3:30 PM Craig A. Berry <craig.a.berry@gmail.com> wrote:
> >
> > On Fri, Dec 10, 2021 at 12:51 PM Nicholas Clark <nick@ccl4.org> wrote:
>
> > > 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.
>
> Quite a bit, it turns out.  I've submitted a solution upstream:
>
> https://github.com/perl-libwin32/win32/pull/30

Yeah, bad form replying to my own message.  But this, after a lot of
review by Jan an xenu, is now merged upstream:

https://github.com/perl-libwin32/win32/commit/a08934397a2c1970c93ed771bf0be1dc5aa2ab40

So the problem of downloading files securely on Windows is solved, and
without external tools or non-core modules.

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