Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: WWW::Mechanize submission problem

by davidrw (Prior)
on Feb 05, 2006 at 15:06 UTC ( [id://528073]=note: print w/replies, xml ) Need Help??


in reply to WWW::Mechanize submission problem

You could try replacing your login code w/WWW::Yahoo::Groups -- just use it to login, and then go wherever you need from there (it uses a WWW::Mechanize object underneath). This way you don't need to maintain the login part yourself:
my $y = WWW::Yahoo::Groups->new(); $y->login( $user => $pass ); # use ->get() which wraps ->agent->get(): $y->get( $your_desired_url ); # or get the agent (a WWW::Yahoo::Groups::Mechanize # object, which is a subclass of WWW::Mechanize) my $mech = $y->agent; # and do whatever with it. $mech->get( $your_desired_url );
At the least, it might help you diagnose the login problem .. (does WWW::Yahoo::Groups also fail? Does it provide any useful errors?)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2024-04-23 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found