cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: javascript

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Wed, 22 Mar 2006 11:48:18 -0600

OK, I'm completely iggerant about Applescript and Safari, but why
couldn't you use curl to telnet to the webserver and simply send that
text?? It's not curl that needs to handle the javascript, it's the
target system. Curl would just see characters to send, right??

Ralph Mitchell

On 3/22/06, Doug McNutt <douglist_at_macnauchtan.com> wrote:
> In Mac OS neXt one can use AppleScript to ask Safari to "do" a Javascript.
>
> > tell application "Safari"
> > (do JavaScript "document.readyState" in document 1 of window id winID)
> > end tell
>
> It's likely that other browsers have the same kind of capability to run their Javascript engines when asked with some kind of interprocess request. Whether it's worthwhile here is another question unless you're just trying to figure out what the Javascript does so you can emulate it in, say, perl.
>
> --
>
> --> From the U S of A, the only socialist country that refuses to admit it. <--
>
Received on 2006-03-22