How to POST a form via Applescript
How to POST a form via Applescript
- Subject: How to POST a form via Applescript
- From: Gary Beberman <email@hidden>
- Date: Sun, 6 May 2001 19:12:38 -0700
I am writing an Applescript to test if a web site function (the
search engine) is in operation and, if not send an alert e-mail to
those responsible for keeping the function running.
Conducting the test means submitting a form via POST and checking the results.
I have tried methods with both IE/5 and Netscape 4.75. Both have
failed (sample code below).
Has ANYONE gotten a POST submission to work with IE (after 4.5) and
Netscape 4.7? If so, would you kindly provide a sample?
Thanks much,
Gary
NETSCAPE SAMPLE:
set FormInfo to "Keyword=someterm"
tell application "Netscape Communicator"
OpenURL "
http://theserver/search/index.jsp" post data FormInfo
end tell
on our site
http://theserver/search/index.jsp is also a page. So this
just brings me to that page without submitting the search.
IE SAMPLE
set FormInfo to "Keyword=shirt"
tell application "Internet Explorer"
OpenURL "
http://ibm5/search/index.ognc" FormData FormInfo
end tell
This one does nothing.