App-ActivityPubClient
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
script/ap-fetch view on Meta::CPAN
my %options = ();
my $ua = LWP::UserAgent->new;
getopts("rju:", \%options);
if ($#ARGV != 0) {
print "usage: ap-fetch.pl [-r|-j|-u user:pass] <url>\n";
print " -j Pipe into jq(1)\n";
print " -r Raw output\n";
print " -u user:pass HTTP Basic Auth credentials\n";
print
"By default, when -j and -r are absent it pipes the data into ap-represent.pl.\n";
exit 1;
}
$ua->agent("AP-Client fetch <https://hacktivis.me/git/ap-client/>");
my $req = HTTP::Request->new(GET => $ARGV[0]);
$req->header('Accept' => 'application/activity+json');
if (defined $options{u}) {
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.355 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )