in reply to Re: Login in to forum with Mechanize
in thread Login in to forum with Mechanize

does that mean, if i would creat a md5 hash from my password myself it would work?

Replies are listed 'Best First'.
Re^3: Login in to forum with Mechanize
by Anonymous Monk on Jul 02, 2013 at 20:13 UTC

    does that mean, if i would creat a md5 hash from my password myself it would work?

    It might, but that might not be the only thing preventing login -- give it a try

Re^3: Login in to forum with Mechanize
by PerlSufi (Friar) on Jul 02, 2013 at 21:00 UTC
    Hi KarlaCluft,
    I would try the $mechanize->submit_form(); function.
    Some thing like this maybe:
    $mech->get($url); $mech->submit_form( form_name => 'signin_form', fields => { 'Username' => $user, 'Password' => $pass} );

    If that doesn't work for you, do what runrig said. Also, I recently did a brief tutorial on WWW::Mechanize in our tutorials section if you want to take a look at that.
    UPDATE: With your current code, you could also try this instead of just $mech->click();
    $mech->click_button( value=> "Login");
    If that button is the one needed to submit the user and login and if submit_form doesn't work..
      but what is the form name?
      i can not finde: what is the form name here?
        I was under the impression the form name was 'signin_form' ? I would implement $mech->dump_text; after your code for logging in, too.