Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by leira (Monk)
on Mar 03, 2004 at 23:53 UTC ( [id://333734]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://333734]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found