Snippets

Brian Medley Example blocking Mojo::Useragent GET

Created by Brian Medley
1
2
3
4
5
6
use Mojo::Base -strict;

use Mojo::UserAgent;

my $ua = Mojo::UserAgent->new->max_redirects(5);
say $ua->get('www.perl.org')->res->dom->at('title')->text;

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.