in reply to Re: Why doesn't $mech->title() change after $mech->submit_form?
in thread Why doesn't $mech->title() change after $mech->submit_form?

I am pretty certain the the $mech->submit_form was successful because when I do my Dumper( $resp ) I can see ...
resp = [ $VAR1 = bless( { '_protocol' => 'HTTP/11', '_content' => ' <HTML> <HEAD><TITLE>Props update example jsp</TITLE></HEAD>

Plankton: 1% Evil, 99% Hot Gas.
  • Comment on Re: Re: Why doesn't $mech->title() change after $mech->submit_form?
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: Why doesn't $mech->title() change after $mech->submit_form?
by leira (Monk) on Mar 03, 2004 at 23:53 UTC
    Well $mech->title uses HTML::HeadParser on the current value of $mech->content, which is why I think it would be valuable to check whether $mech->content is what you think it is.

    Linda

      When I do ...
      print $mech->content;
      ... I get ...
      <HTML> <HEAD><TITLE>Props update example jsp</TITLE></HEAD> ...
      ... and $mech->success returns true. Why doesn't $mech->title() update? What'cha think ... is this a bug?

      Plankton: 1% Evil, 99% Hot Gas.
        OK, I should have seen this the first time 'round:

        $title = $mech->title(); # get the new title? print "$upLoadUrl is titled [$upLoadTitle]\n"; print "resp = [ " . Dumper( $resp ) . "]\n";

        You probably meant to print out $title and not $upLoadTitle.

        Linda