in reply to Re^3: url issues using HTTP::Tiny
in thread url issues using HTTP::Tiny

The reason that HTTP::Tiny is in core is as a fallback for CPAN to use when wget or curl don't work. So there is no need to "fix" this.

Replies are listed 'Best First'.
Re^5: url issues using HTTP::Tiny
by hippo (Archbishop) on Sep 19, 2019 at 09:08 UTC

    Caveat: so long as CPAN never needs to access an https URL.

Re^5: url issues using HTTP::Tiny
by Anonymous Monk on Sep 19, 2019 at 10:54 UTC
    The core module File::Fetch solves the problem by trying LWP, HTTP::Tiny, wget, curl, lftp, fetch, HTTP::Lite, lynx & iosock:
    perl -MHTTP::Tiny -le'print HTTP::Tiny->new->get("https://perlmonks.or +g/")->{content}'
    IO::Socket::SSL 1.42 must be installed for https support
    Net::SSLeay 1.49 must be installed for https support
    
    perl -MFile::Fetch -le'$f=File::Fetch->new(uri=>"https://perlmonks.org +/")->fetch(to=>\my$data)or die$f->error;print$data'
    Success!