Getting a cgi stack call to work

Richard Miller wow at together.net
Thu Jan 3 16:24:50 EST 2008


I should also mention that the Revolution engine, the test.cgi file  
and the test.rev stack are all together in cgi-bin.

Thanks.
Richard


On Jan 3, 2008, at 4:19 PM, Richard Miller wrote:

> I'm having problems getting the most simple example of a cgi stack  
> call to work. This is what I know.
>
> I start with a simple file called "test.cgi":
> ---------------------
> #!Revolution
>
> on startup
>    global buffer
>    put "hi there" into buffer
>    put "Content-Type: text/html" & cr & cr
>    put buffer
> end startup
> ---------------------
>
> When I call on this from an html file, it works fine. No problem at  
> all.
>
> Next, I change the above "test.cgi" file to this:
> ---------------------
> on startup
>     start using "test.rev"
> end startup
> ---------------------
>
> I create a new Rev stack and insert only a stack script as follows:
> ---------------------
> on librarystack
>    global buffer
>    put "hi there" into buffer
>    put "Content-Type: text/html" & cr & cr
>    put buffer
> end librarystack
> ---------------------
>
> Every time I try to run this, I get a 500 error: Premature End of  
> Script Headers", and it always tells me the error occurs at the  
> "start using" line.
>
> All the files and the stack have permissions set to 777 (does it  
> matter if it's 777 or 775?)
>
> I'm testing this on an Intel Mac using the built-in server.
>
> I've run out of things to look at. Any ideas?
>
> Thanks.
> Richard Miller
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list