cgi example

Kee Nethery kee at kagi.com
Mon Jul 1 12:19:00 EDT 2002


>For anyone stumbling around like me,  I have finally gotten this to work on
>OS X, not sure what I did wrong, but here is the exact script for anyone who
>is interested in the "Hello World" type of thing:
>
>(Also, I named the script "myscript.cgi" --- the extension is optional, but
>that's what I used.  Both the engine and script go into the cgi-bin, and the
>permissions are set to 755 for both)  Hope that's helpful!
>
>
>Mark
>
>
>
>#!/Library/WebServer/CGI-Executables/Darwin
>
>on startUp
>   put "Hello World!" into tresponse
>   put "Content-Type: text/html" & cr
>   put "Content-Length:" & the length of tresponse & cr & cr
>   put tresponse
>end startUp
>

This is an excellent first start.

Have you figured out how to collect all the client browser data from 
the incoming connection? Have you figured out how to data sent via 
POST or GET?

Thanks for the above posting.
Kee Nethery



More information about the Use-livecode mailing list