in reply to Mechanize Problems

As mech-dump indicates that the button you are clicking is the submit button, instead of clicking the button I would use the submit function from WWW::Mechanize, as follows :

... $mech->untick(SSview => "on"); $mech->submit; die $mech->res->status_line unless $mech->success ; my $uri = $mech->response->request->uri->as_string ; print $uri ;
Is it better ?

We discussed form submitting in how to submit html form?.

Hope this helps.

Gu

Replies are listed 'Best First'.
Re^2: Mechanize Problems
by Anonymous Monk on Dec 12, 2005 at 18:57 UTC
    Thank you for your effort... but it was my first thought. No sorry there is no improvement... For some reason the post is a kind of success but just returns to the original page, no matter if submit or button, or if I do some hardcoding... always the same result. I am lost.