Subject: | |
From: | |
Reply To: | |
Date: | Thu, 20 Apr 2000 15:01:18 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Ken,
You are not outputting enough information to satisfy the browser. At a
minimum you need the following:
Content Type: text/html <lf><lf> <-- 2 line feed characters
<HTML>
This is a test
</HTML>
HTH.
Doug.
Doug Werth Beechglen Development Inc.
[log in to unmask] Cincinnati, Ohio
----- Original Message -----
From: "Born, Ken" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Thursday, April 20, 2000 14:40 PM
Subject: Using PASCAL as CGI with APACHE
> Hi gang,
> Starting out using APACHE and want to execute a PASCAL program using
CGI.
> I keep getting the same error message over and over..."Premature end of
> script headers". My PASCAL program is as follows:
> $TITLE 'Test Web Messages - Version 02.03'$
> $OS 'MPE/XL'$
> $NOTES OFF$
> $HEAP_DISPOSE ON$
> $HEAP_COMPACT ON$
>
> PROGRAM car_messages(output);
>
> VAR
> i_text : char;
> o_text : char;
> BEGIN
>
> WRITELN('THIS IS A TEST');
>
> END.
>
> I compiled the programmed on MPE and it runs fine. However, when I
transfer
> it to the cgi-bin directory and use a browser to execute it, I recevied
the
> Boo Boo message. This is the first time I am working with Apache and
CGI's.
> Where can I look at samples regarding what is needed in the HTML
document
> and what is needed in the MPE executable?
>
> Any help would be appreciated...
> Thanks....
|
|
|