andarian has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Trying to automate POST with LWP
by swares (Monk) on Oct 20, 2005 at 11:31 UTC | |
Re: Trying to automate POST with LWP
by Trimbach (Curate) on Oct 20, 2005 at 12:51 UTC | |
Re: Trying to automate POST with LWP
by planetscape (Chancellor) on Oct 21, 2005 at 06:52 UTC |