Sorry for not including it in the code, but I've put in checks at those places before.. putting in
die "Some error" unless $mech -> success; at each of the indicated places never produces a death. Is there some other error checking to be done? I've also printed out the response content after each step and it always looks good until the submit. Then it's just the same stuff over and over again.. the login page. thanks Nick Andy Lester <[EMAIL PROTECTED]> 06/01/2004 12:45 PM To: Nicholas S Zambo <[EMAIL PROTECTED]> cc: [EMAIL PROTECTED] Subject: [BULK] - Re: problem using mechanize to log into a site On Tue, Jun 01, 2004 at 12:16:53PM -0400, Nicholas S Zambo ([EMAIL PROTECTED]) wrote: > my $mech = WWW::Mechanize->new(); > $mech -> agent_alias( 'Windows IE 6' ); #i've tried several agents here. > $mech -> get("http://www.terrorexchange.com/"); No error checking here. > $mech -> follow_link( text => 'Login' ); > $mech -> field("txtEmail" => "my_emailaddress"); > $mech -> field("txtPassword" => "my password"); > $mech -> submit(); No error checking here. > Can anyone take a look and see if I'm just missing something stupid? (Or > just being stupid) What errors do you get? -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance ========== The preceding e-mail message (including any attachments) contains information that may be confidential, be protected by the attorney-client or other applicable privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. ==========