CGIs do not work correctly with Applescript 1.6. Use Applescript 1.8.3 instead (available thru your SoftWare Update Control Panel). |
Applescript CGIs do not work with Apache/MacOS X. James Sentman is working to provide a fix http://www.sentman.com/acgi/; please encourage and support him in his efforts. WebSTAR V has Apple Event CGI support; however, it appears to be deficient. The applet must be running OR the OSX machine running W*V must be logged in as user "webstar". I consider these to be wrong behaviors, but I have not tested the latest W*V. |
Handle CGI Example |
" property br2 : " " property brr : " " & return property br2r : " " & return property rtn : return property rtn2 : return & return property pageTitle : "Unprocessed Results of handle CGI request" -- the following construction prevents email readers from parsing the html (I hope) property hht : " " & pageTitle & "" & rtn set newhtml to newhtml & "handle CGI request " & URL_path & brr set newhtml to newhtml & "searching for " & searching_for & br2r set newhtml to newhtml & "with posted data" & posted_data & "" & br2r set newhtml to newhtml & "of content type " & content_type & brr set newhtml to newhtml & "using access method " & access_method & brr set newhtml to newhtml & "from address " & client_address & brr set newhtml to newhtml & "from user " & userName & brr set newhtml to newhtml & "using password " & password & brr set newhtml to newhtml & "with user info " & user_info & brr set newhtml to newhtml & "from server " & server_name & brr set newhtml to newhtml & "via port " & server_port & brr set newhtml to newhtml & "executing by " & script_name & brr set newhtml to newhtml & "referred by " & referred_by & brr set newhtml to newhtml & "from browser " & browser_name & brr set newhtml to newhtml & "using action " & action_used & brr set newhtml to newhtml & "of action type " & action_type & brr set newhtml to newhtml & "from client IP address " & client_IP_address & br2r set newhtml to newhtml & "with full request " & full_request & "" & br2r set newhtml to newhtml & "with connection ID " & connection_ID & brr set newhtml to newhtml & " Results generated on " & (current date) & rtn set newhtml to newhtml & " |