HP3000-L Archives

April 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Born, Ken" <[log in to unmask]>
Reply To:
Born, Ken
Date:
Thu, 20 Apr 2000 13:40:34 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
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....

ATOM RSS1 RSS2