Change the second parameter to "Automated Splice Site Analyses" and you might have more luck.$mech->credentials( 'www.edited.com:443', 'Title', $username, $passw +ord );
FYI here's the relevant code in LWP::UserAgent:
As you can see, if $realm has the wrong value, one that isn't in the HoHoA, nothing will be returned.sub credentials { my $self = shift; my $netloc = lc(shift); my $realm = shift || ""; my $old = $self->{basic_authentication}{$netloc}{$realm}; if (@_) { $self->{basic_authentication}{$netloc}{$realm} = [@_]; } return unless $old; return @$old if wantarray; return join(":", @$old); }
update WWW::Mechanize overrides this method and allows a 2 argument form: just username and password. That way you can avoid this mess with the realm altogether. Thanks for the tip, erix, although maybe unintentional... :)
$mech->credentials( $username, $password );
In reply to Re: HTTPS WWW::Mechanize Form Problems
by bart
in thread HTTPS WWW::Mechanize Form Problems
by LE500
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |