tonyl has asked for the wisdom of the Perl Monks concerning the following question:
I have this Login page which I am trying to perform a form submit. Below is part of my script so far...
but when I examine the traffic, I notice it does not work because it is missing the additional query string rnd=(some random number). Is there a method I can add additional query string to the POST? I also tried to use post method by appending the query string at the end of the url but then none of the post data are included.mech->get('http://acemeweb01/webapp/common/login_JSF.faces'); $mech->form_name('loginForm'); $mech->field('domain_name', 'DEFAULT'); $mech->field('user_name','user'); $mech->field('password','welcome'); $mech->click();
Any pointer is appreicated.
Tony
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to add additional Query String in Post via Mechanize
by almut (Canon) on Jan 09, 2010 at 02:45 UTC | |
|
Re: How to add additional Query String in Post via Mechanize
by Massyn (Hermit) on Jan 09, 2010 at 02:45 UTC |