when $agent is of LWP::Agent i am logged in, but with WWW::Mechanize I am redirected to the login screen.Do you mean LWP::UserAgent?
It just so happens that WWW:Mechanize is a sub-class of LWP::UserAgent. So if you can't figure out what's going wrong, an option is to use LWP::UserAgent methods to log in and WWW::Mechanize methods for everything else.
In reply to Re: LWP::UserAgent vs WWW::Mechanize
by pc88mxer
in thread LWP::UserAgent vs WWW::Mechanize
by jcdento
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |