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

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

Replies are listed 'Best First'.
Re: Re: Re: Re: Why doesn't $mech->title() change after $mech->submit_form?
by Plankton (Vicar) on Mar 04, 2004 at 00:03 UTC
    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

        :0 DOH! Thanks!

        Plankton: 1% Evil, 99% Hot Gas.