in reply to Re^3: $mech->content() returns empty
in thread $mech->content() returns empty

You can selectively disable the redirection. I suppose that if you need to examine something on the pre-redirect page that you'd use that feature.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Replies are listed 'Best First'.
Re^5: $mech->content() returns empty
by Anonymous Monk on Oct 14, 2006 at 00:21 UTC
    Here's more information I've come across.

    When the user signs in CORRECTLY, it does redirect. If they sign in wrong, it stays at the page of the form's action attribute.

    I made sure the login info was WRONG and I can capture the page and get it to let me know it did not sign in.

    HOWEVER, when I add the right information to login, it apparently goes through the redirect (assuming this because $mech->content is empty) BUT my forum's activity box shows no user has signed in for the last 15 minutes.

    For some reason it THINKS it is signing in but it can't be. Could some javascript on the page be throwing WWW::Mech off?

      WWW::Mechanize doesn't know anything about JavaScript and doesn't execute any of it.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊