Plankton has asked for the wisdom of the Perl Monks concerning the following question:
... and here is the output I get ...... my $mech = WWW::Mechanize->new(); my $resp = $mech->get( $upLoadUrl ); if ( !$mech->success ) { print "Error could not access $upLoadUrl\n"; exit 1; } my $title = $mech->title(); #print Dumper( $resp ); if ( $title ne $upLoadTitle ) { print "$upLoadUrl is not titled [$upLoadTitle]\n"; exit 1; } $resp = $mech->submit_form ( fields => { j_username => $user, j_password => $password, } ); $title = $mech->title(); # get the new title? print "$upLoadUrl is titled [$upLoadTitle]\n"; print "resp = [ " . Dumper( $resp ) . "]\n"; ...
Why didn't my second callto $mech->title() return Props update example jsp ??? What should I be doing to get this second title?./httpsUpload.pl[224] https://localhost:8080/SecureUpLoad is titled [S +ecure HTTP File Uploader (SHFU) Logon] resp = [ $VAR1 = bless( { '_protocol' => 'HTTP/1.1', '_content' => ' <HTML> <HEAD><TITLE>Props update example jsp</TITLE></HEAD> ...
| Plankton: 1% Evil, 99% Hot Gas. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why doesn't $mech->title() change after $mech->submit_form?
by leira (Monk) on Mar 03, 2004 at 23:42 UTC | |
by Plankton (Vicar) on Mar 03, 2004 at 23:46 UTC | |
by leira (Monk) on Mar 03, 2004 at 23:53 UTC | |
by Plankton (Vicar) on Mar 04, 2004 at 00:03 UTC | |
by leira (Monk) on Mar 04, 2004 at 00:10 UTC | |
|