@@ -4,7 +4,7 @@ <H1>Using python to create CGI scripts</H1>
44< HR >
55
66In this document we will (eventually) explain how to create Python CGI scripts
7- for use with NetPresenz and probably other Mac-based HTTP servers too.
7+ for use with Personal WebServer, WebStar and probably other Mac-based HTTP servers too.
88Since CGI scripts are AppleEvent servers on the mac we will also learn
99a little about general AppleEvent server programming and about applet
1010debugging. < p >
@@ -44,7 +44,8 @@ <h2>AppleEvent servers</h2>
4444
4545< h2 > A Minimal CGI script</ h2 >
4646
47- To try a CGI script you will first need a http server. I have used the
47+ To try a CGI script you will first need a http server. Apple's Personal Webserver
48+ is fine, but I have also used the
4849shareware
4950< a href ="http://www.stairways.com/netpresenz/ "> NetPresenz</ a >
5051by Peter Lewis
@@ -78,5 +79,12 @@ <h2>A Minimal CGI script</h2>
7879
7980To test the script drop < code > cgitest.cgi.py</ code > onto < code > mkapplet</ code > ,
8081move the resulting < code > cgitest.cgi</ code > to somewhere where it is reachable
81- by NetPresenz, and point your web browser towards it.
82+ by NetPresenz, and point your web browser towards it. Note that this assume you have
83+ already renamed realcgitest.py to cgitest.cgi.py, otherwise you'll also have
84+ to copy that file along. < p >
85+
86+ For Apple's Personal Webserver you need to do a bit more: you have to copy the
87+ cgi applet to somewhere in your "Webpages" folder and you have to tell the webserver
88+ (in the control panels) that your CGI script exists. I don't understand what the various
89+ types of cgi scripts mean, but experiment with them.
8290</ BODY > </ HTML >
0 commit comments