Nathan DeBardeleben wrote:
> This may seem wierd, and I know someone asked this question before but
> was told they were doing it the hard way. Unlike them, I do not have
> shell access to the machine where this javascript runs.
>
> I need to run the 'submit' method on a Javascript on a page - but I
> need to do it without a browser.
Yes, that sounds weird.
> I can handle all the socket code,
> that's not the issue, the issue is what command I need to send.
You lost me there. You want to run Javascript in a browser that doesn't
exist, and you want to know what command to send it?
Do you mean you want to simulate the submission of this form? You can do
that by sending out the appropriate headers with the form values in the body
of the request:
>> POST /cgi-bin/my.cgi HTTP/1.1
>> Host: mysite
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: [work it out]
>>
>> ses=366021079
>> id=somevalue
Not really a Javascript issue though, so perhaps I've totally misunderstood
your problem.
--
Philip Ronan
(Please remove the "z"s if replying by email)