Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: $mech->content() returns empty

by Anonymous Monk
on Oct 14, 2006 at 00:21 UTC ( [id://578235]=note: print w/replies, xml ) Need Help??


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

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?

Replies are listed 'Best First'.
Re^6: $mech->content() returns empty
by diotalevi (Canon) on Oct 14, 2006 at 00:23 UTC

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

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://578235]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found