Skip to content
Web user agent class for Perl 6.
Perl6 Perl
Find file
Latest commit 545e15c @jonathanstowe jonathanstowe Refactor the server from the binary-request
It could potentially be useful in other tests putting it as a separate
module makes it easier to generalise.

HTTP::UserAgent Build Status

Web user agent class for Perl 6.


use HTTP::UserAgent;

my $ua =;
$ua.timeout = 10;

my $response = $ua.get("URL");

if $ {
    say $response.content;
} else {
    die $response.status-line;


To install it using Panda (a module management tool bundled with Rakudo Star):

$ panda update
$ panda install HTTP::UserAgent


To run tests:

$ prove -e "perl6 -Ilib"


Please see the documentation links listed below:

To-do List and Future Ideas

strikethrough text means done.

  • clean up
  • speed up


  • HTTP Auth
  • let user set his own cookie jar
  • make getprint() return the code response
  • security fix - use File::Temp to create temporary cookie jar
  • use Promises
  • make SSL dependency as optional


  • path restriction


  • fix NativeCall's int bug
  • make it work on more platforms


  • make it work on more platforms
  • make SSL support more reliable
  • add throwing exception on failing SSL
  • more tests
Something went wrong with that request. Please try again.