Hi,
Can someone explain please how you get to submit a form and physically route the browser to the next screen after the form is submitted?
I've used the following...
and all I get is
I'm basically trying to log someone into a 3rd party ancillary website, i've got the form, i've filled them in, now I need to make the CGI work like the user has submitted the login form and route the browser to the 3rd party site.
I've even tried print $mech->response; but that just prints a text version of the form still with the URL as my PERL program, when it should be the 3rd party website after being logged in.
Is this possible, I can only seem to get Mechanize to do what appears to be screen scraping, not act like you were really on the 3rd party site.
All help appreciated.
1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
Can someone explain please how you get to submit a form and physically route the browser to the next screen after the form is submitted?
I've used the following...
Code:
$mech->submit_form(
form_number => 1,
fields => { %vals },
);
die unless ($mech->success);
and all I get is
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
I'm basically trying to log someone into a 3rd party ancillary website, i've got the form, i've filled them in, now I need to make the CGI work like the user has submitted the login form and route the browser to the 3rd party site.
I've even tried print $mech->response; but that just prints a text version of the form still with the URL as my PERL program, when it should be the 3rd party website after being logged in.
Is this possible, I can only seem to get Mechanize to do what appears to be screen scraping, not act like you were really on the 3rd party site.
All help appreciated.
1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!