I am trying to write an AppleScript-based CGI application, and the handle
cgi request handler doesn't get called. Why?
For years I have supported a program called email.cgi. It is a fun little
hack that seems to fill a need. See:
http://www.infomotions.com/email-cgi/
With the advent of Mac OS 9.1 my script breaks; nothing seems to get
processed. Consequently I started thinking about rewriting it. Here is the
simplest of scripts. I know it will not return a valid header, but it should
beep four (4) times and it only beeps twice:
beep 2
on handle CGI request this_request
beep 2
end handle CGI request
While trying to run this script on MacHTTP and/or Personal Websharing I get
nothing. The script launches, but only beeps twice. MacHTTP returns:
"Error -1701: Getting CGIreply string
(Requested descriptor was not found (reply))
What am I doing wrong? What can I do to trap errors?
--
Eric Lease Morgan
NCSU Libraries
http://www.lib.ncsu.edu/staff/morgan/
------------------------------
This archive was generated by hypermail 2b29 : Sun May 27 2001 - 12:00:29 AEST