Authen-Simple-WebForm
view release on metacpan or search on metacpan
This can be either "GET" or "POST".
How the initial url will be sent to the server, either via HTTP GET
request, or HTTP POST.
Defaults to "GET".
login_url
REQUIRED
The URL to which the login credentials will be submitted.
For example: https://host.company.com/login.pl
login_expect
String or a compiled regex (eg. "qr/login\s+successful/i").
Set to a unique string to expect in the resulting page when the
login was successful.
Be default, this is not turned on. If you do not set this, then as
examples/ex1.pl view on Meta::CPAN
use Authen::Simple::Log;
use Term::ReadKey();
my $log = Authen::Simple::Log->new();
my $webform = Authen::Simple::WebForm->new(
'log' => $log,
initial_url => 'http://freshmeat.net/session/new?return_to=/',
login_url => 'http://freshmeat.net/session',
login_expect => 'href="/logout"',
login_expect_cookie => 'user_credentials',
username_field => 'user_session[login]',
password_field => 'user_session[password]',
extra_fields => [
'commit' => 'Log in!',
'user_session[remember_me]' => 0,
'user_session[openid_identifier]' => '',
],
);
print "USER: ";
lib/Authen/Simple/WebForm.pm view on Meta::CPAN
How the initial url will be sent to the server, either via HTTP GET request, or HTTP POST.
Defaults to "GET".
=item login_url
REQUIRED
The URL to which the login credentials will be submitted.
For example: https://host.company.com/login.pl
=item login_expect
String or a compiled regex (eg. C<qr/login\s+successful/i>).
Set to a unique string to expect in the resulting page when the login was successful.
( run in 0.253 second using v1.01-cache-2.11-cpan-4d50c553e7e )