[KLUG Members] Dynamic HTML/HTTP question

Peter Buxton members@kalamazoolinux.org
Thu, 5 Dec 2002 07:53:58 -0500


On Thu, Dec 05, 2002 at 01:46:14AM -0500, Robert G. Brown wrote:

> <form action="index.asp" method="post" name="dateSearch" 
>  onsubmit="return validateForm(this)">
> <input type="text" name="startDate" size="15">
> <input type="text" name="endDate" size="15">
> <input type="image" src="/images/button-images/search_button.gif"
>  width="50" height="10" border="0">
> </form>

> What I want to do is submit my query under program control, and 
> without manual intervention. Put another way, I would like to know 
> how to get the server to react AS IF someone had answered the requests 
> for data by filling in something, and thus send along the response 
> that would result from the processing of the query that is submitted.

Web crawling. You probably should use Perl, and ask Jamie. ;-)

What you want to do is connect to the server, just as if you were
GET'ting any page, only you are going to connect with a POST command and
a bunch of 'uploads.' Standard HTTP. Copy the page to your local web
server and experiment. Heck, it might not be a pain even using socket(1)
and bash(1), maybe even chat(8).

-- 
for gpg key: http://killdevil.org/~peter