• 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
Fwd: Handling a CGI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Handling a CGI


  • Subject: Fwd: Handling a CGI
  • From: Steve Thompson <email@hidden>
  • Date: Fri, 9 Nov 2001 16:24:58 +0000

You're using Applescript 1.6
No, 1.5.5 which I was using before I visited the pages you suggested. I have tried other versions as well because I know how flaky AppleScript can be.

Make sure you have an error handler.
I have various error handlers. Just to clarify - I have successfully written CGIs before but they have all had parameters passed to the using form data. This one has no data passed to it.

Make sure you wrap the returned html in an http header.
It's not getting to that stage. As I said, it launches, but it does not execute. One of the very first things it does when run as a script is create a file on my desktop - that file appears if I run the script as a script or as an applet but not if I run it as a CGI

Post your code.
It's just over 400 lines. I'll mail it to you if you want but I don't think anyone would be too impressed if I posted it.



_____________________________________________________________________
This message has been checked for all known viruses by the MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp


  • Follow-Ups:
    • Re: Fwd: Handling a CGI
      • From: Brian Johnson <email@hidden>
  • Prev by Date: Re: QXP: ungrouping ?
  • Next by Date: Re: Work the Scripting Addition without restarting....
  • Previous by thread: Re: Handling a CGI
  • Next by thread: Re: Fwd: Handling a CGI
  • Index(es):
    • Date
    • Thread