Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use WWW::Mechanize; use MIME::Base64; my $M = WWW::Mechanize->new(); my @args = ( Authorization => "Basic ". MIME::Base64::encode( 'user:password' ) ); $M->credentials( 'anywhere.com', 'Registerd Users', 'user', 'password' + ); $M->get('http://anywhere.com/mytest?rm=test', @args); die unless $M->success(); $M->submit_form(); die "I've had no success" unless $M->success();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Supplying authentification credentials with WWW::Mechanize
by johnnywang (Priest) on May 27, 2005 at 04:44 UTC | |
|
Re: Supplying authentification credentials with WWW::Mechanize
by tlm (Prior) on May 27, 2005 at 04:36 UTC | |
|
Re: Supplying authentification credentials with WWW::Mechanize
by tlm (Prior) on May 27, 2005 at 05:50 UTC |