WWW::Crawler::Mojo::UserAgent - Mojo::UserAgent sub class for userinfo storage
my $ua = WWW::Crawler::Mojo::UserAgent->new; $ua->keep_credentials(1); $ua->credentials->{'http://example.com:80'} = 'jamadam:password'; my $tx = $ua->get('http://example.com/'); say $tx->req->url # http://jamadam:passowrd@example.com/
This class inherits Mojo::UserAgent and override start method for storing user info
WWW::Crawler::Mojo::UserAgent inherits all attributes from Mojo::UserAgent.
Set true to set the feature on.
$ua->keep_credentials(1);
Storage for credentials.
$ua->credentials->{'http://example.com:80'} = 'jamadam:password';
WWW::Crawler::Mojo::UserAgent inherits all methods from Mojo::UserAgent.
Sugama Keita, <sugama@jamadam.com>
Copyright (C) Sugama Keita.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::Crawler::Mojo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Crawler::Mojo
CPAN shell
perl -MCPAN -e shell install WWW::Crawler::Mojo
For more information on module installation, please visit the detailed CPAN module installation guide.