Monks hello,
I've been trying to use the LWP module to automate POST.
I've managed to get a response object and it looks like the POST has successed in writing the text I told it to into the proper fields.
The problem is that it looks that all needs to be done now is to press the "Submit" button, which is a javascript submit function and i don't know how to interface with it.
Looking at the HTML source I found that button and it looks like this
<tr style="padding-top:8px;padding-bottom:3px;"> <td colspan="3" style="padding +-right:155px;"> <a href="javascript:submitFina +l();"> <img src="images/buttons/b_sea +rch.gif" border=0></td> </a> </tr>
Looking at the start of HTML i found that function, which checks a few conditions and if those are OK it will return a new page, the part that returns a new page looks like this
The purpose of my program is to recieve that "PhoneNumResults.asp" and procces it.document.forms.frmData.action="PhoneNumResults.asp" document.forms.frmData.submit();
20051020 Janitored by Corion: Added formatting
In reply to Trying to automate POST with LWP by andarian
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |