Closed swaggboi closed 9 months ago
Disregard, I got it working by just passing the header as a pair rather than a hash:
#!/usr/bin/env raku
use v6.d;
use HTTP::UserAgent;
my $uri = 'https://hyperlink-redirect.seriousbusiness.international/';
my $ua = HTTP::UserAgent.new;
my %form = hyperlink => 'example.com';
my $bin = False;
my $response = $ua.post: $uri, %form, :$bin, X-Cool-Request => 'Heck';
say $response.status-line;
This returns a 200 as expected.
I am trying to make a simple request using the
.post
method like so:When I run this I get the following like it doesn't like the subroutine signatures:
Am I doing this wrong? I tried searching but all the prior issues I see are from before it seems the
.post
method was implemented?