I've written an application using the LWP library that monitors a particular web site for changes in information. This involves having the application log in to the site and repeatedly navigate through a series of web pages to see if any information changes on them, responding appropriately to those changes. On rare occasions a web page appears that requires a response to a form that I'm not sure how to handle. I'm used to seeing HTML forms that look like this one (from the login page)
<form name="loginform" method="post" action="...
<input type="text" class="loginFormText" ID="txtLoginID" name="id" value="">
<input type="password" class="loginFormText" ID="txtPassword" name="pin">
My program responses to this with something like the following:
$response = $browser->post(' ['id' => 'myid', 'pin' => 'mypin']);
The 'action=...' clause in the form tells you what page to post to.
But the web page that I see on rare occasions has HTML that looks like the following:
<form method="post" name="formMain" xmlns:func="urn:extra-functions" xmlns:fldi=" xmlns:str="...
<input type="submit" name="Confirm" value="Confirm" xonClick="return checkForm(formMain)" /></form>
This for has no 'action=...' clause in its specification. So how to I build the arguments to the post method to respond to this form?
Any insights into handling the problem would be much appreciated...
<form name="loginform" method="post" action="...
<input type="text" class="loginFormText" ID="txtLoginID" name="id" value="">
<input type="password" class="loginFormText" ID="txtPassword" name="pin">
My program responses to this with something like the following:
$response = $browser->post(' ['id' => 'myid', 'pin' => 'mypin']);
The 'action=...' clause in the form tells you what page to post to.
But the web page that I see on rare occasions has HTML that looks like the following:
<form method="post" name="formMain" xmlns:func="urn:extra-functions" xmlns:fldi=" xmlns:str="...
<input type="submit" name="Confirm" value="Confirm" xonClick="return checkForm(formMain)" /></form>
This for has no 'action=...' clause in its specification. So how to I build the arguments to the post method to respond to this form?
Any insights into handling the problem would be much appreciated...