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

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

Thread Previous | Thread Next
From:
Andrew Hewus Fresh
Date:
December 10, 2021 18:09
Subject:
Re: OpenSSL alternative support WAS Re: Pre-RFC: support httpsout-of-the-box
Message ID:
YbOX2H7SUn9TWSaa@us.holligan.net
On Fri, Dec 10, 2021 at 05:54:16PM +0100, Tomasz Konojacki wrote:
> On Fri, 10 Dec 2021 17:45:29 +0100
> Tomasz Konojacki <me@xenu.pl> wrote:
> 
> > On Fri, 10 Dec 2021 10:37:19 +0000
> > Nicholas Clark <nick@ccl4.org> wrote:
> > 
> > > 2) Are curl and wget likely to be found on Win32? Is there any command line
> > >    tool that a HTTP::TIMTOWTDI module can shell out to, to deal with https?
> > 
> > Windows ships with curl.exe since Windows 10 1803.
> 
> PS. BSDs are a bigger problem that Windows. While CPAN.pm can fall back
> to curl/wget, neither of them are available there OOTB, at least on
> FreeBSD and DragonFly BSD. They provide "fetch" command instead.

OpenBSD has ftp(1)[1] that grew https GET support as well as shipping
(obviously?) with LibreSSL and its nc(1) with -c (TLS)[2] support.  As I
said in another post, I have a hack that uses that for https in
HTTP::Tiny as a "socket" interface so supports any method.

I think if there is a module that provides a front-end with support for
using different backends you will find folks willing to provide patches
to make it work with them.

(AFAIK FreeBSD's fetch(1) only supports GET as well, which is likely
fine but the solution should have a way for backends to say which http
methods they support)

[1] https://man.openbsd.org/ftp.1
[2] https://man.openbsd.org/nc.1#c
[3] https://gist.github.com/afresh1/c4ac35cdd29e6b2cd15eef38246c4c71

l8rZ,
-- 
andrew

Mountain Dew and doughnuts...
     because breakfast is the most important meal of the day.

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