• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to POST a form via Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: How to POST a form via Applescript: use javascript
      • From: Chris Adams <email@hidden>
  • Prev by Date: Re: OpenURL command
  • Next by Date: Re: "[AS]" on subject line? Script solution
  • Previous by thread: Re: OpenURL command
  • Next by thread: Re: How to POST a form via Applescript: use javascript
  • Index(es):
    • Date
    • Thread