The site you pointed us to in the CB has the credentials realm "Automated Splice Site Analyses". I don't see that anywhere in your code. Instead, your realm is simply "Title":
$mech->credentials( 'www.edited.com:443', 'Title', $username, $passw +ord );
Change the second parameter to "Automated Splice Site Analyses" and you might have more luck.

FYI here's the relevant code in LWP::UserAgent:

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); }
As you can see, if $realm has the wrong value, one that isn't in the HoHoA, nothing will be returned.

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.