LWP::Simple quick & dirty implementation for Rakudo Perl 6
Branch: master
Clone or download
Pull request Compare This branch is 90 commits ahead of niner:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Moves scripts to use the most common extension Nov 27, 2018
lib/LWP Decode headers with latin-1 not ascii Nov 27, 2018
t Clarifies tests closes #13 Nov 28, 2018
Changes Decode headers with latin-1 not ascii Nov 27, 2018


LWP::Simple for Perl 6

Build Status

This is a quick & dirty implementation of a LWP::Simple clone for Rakudo Perl 6; it does both GET and POST requests.


LWP::Simple depends on the modules MIME::Base64 and URI, which you can find at http://modules.perl6.org/. The tests depends on JSON::Tiny.


zef install --deps-only .

You'll have to install IO::Socket::SSL via

zef install IO::Socket::SSL

if you want to work with https too.


use LWP::Simple;

my $content = get("https://perl6.org");

my $response = post("https://somewhere.topo.st", { so => True }

Current status

You can use HTTP::UserAgent instead, with more options. However, this module will do just fine in most cases.


Use the installed commands:

 lwp-download.p6  http://eu.httpbin.org


 lwp-download.p6  https://docs.perl6.org 

If ÌO::Socket::SSL has been installed.

lwp-get.p6  https://perl6.org

will instead print to standard output.