Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 21408 invoked by uid 500); 27 Apr 2003 15:34:58 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 21386 invoked from network); 27 Apr 2003 15:34:58 -0000 Received: from smtp018.mail.yahoo.com (216.136.174.115) by daedalus.apache.org with SMTP; 27 Apr 2003 15:34:58 -0000 Received: from rj180217.user.veloxzone.com.br (HELO durante) (gabesdurante@200.149.180.217 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 27 Apr 2003 15:35:00 -0000 Message-ID: <005401c30cd2$acea2f40$d0a7fea9@durante> From: "Gabriel" To: Date: Sun, 27 Apr 2003 12:35:44 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0051_01C30CB9.85AE94C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: [users@httpd] Run CGI ------=_NextPart_000_0051_01C30CB9.85AE94C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I install Apache 2.0 on Windows 98 Plataform and I try to run a CGI = that was writen in C on it, but browser always shows me this error = "Internal server error" and log error file shows "premature end of = script headers". The code is in cgi-bin folder and the httpd.conf is = with default parameters. the code is that: -------------------------------------------------------------------------= ------------------------------------- #include void main() { printf("Content-type: text/html\n\n\n"); printf("Home Page do Gabriel\n"); printf("\n"); printf("\n"); printf("

HELLO WORLD

\n"); printf("\n"); printf(""); } -------------------------------------------------------------------------= ---------------------------------------- The code me that: -------------------------------------------------------------------------= ---------------------------------------- Content-type: text/html Home Page do Gabriel

HELLO WORLD

-------------------------------------------------------------------------= ----------------------------------------- I think the code is right but I''m not sure if the httpd.conf is OK. = What can I do? Regards. Gabriel Durante ------=_NextPart_000_0051_01C30CB9.85AE94C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I install Apache 2.0 on Windows 98 = Plataform and I=20 try to run a CGI  that was writen in C on it, but browser always = shows me=20 this error "Internal server error" and log error file shows "premature = end of=20 script headers". The code is in cgi-bin folder and the httpd.conf is = with=20 default parameters.
the code is that:
----------------------------------------------------------------= ----------------------------------------------
#include <stdio.h>
 
void main()
{
 printf("Content-type:=20 text/html\n\n\n");
 printf("<TITLE>Home Page do=20 Gabriel</TITLE>\n");
 printf("<HTML>\n");
 pr= intf("<BODY>\n");
 printf("<CENTER><H1>HELLO=20 WORLD</H1></CENTER>\n");
 printf("</BODY>\n");<= BR> printf("</HTML>");

}
----------------------------------------------------------------= -------------------------------------------------
 The code me = that:
----------------------------------------------------------------= -------------------------------------------------
Content-type: = text/html
 
<TITLE>Home Page do=20 Gabriel</TITLE>
<HTML>
<BODY>
<CENTER>&l= t;H1>HELLO=20 WORLD</H1></CENTER>
</BODY>
</HTML>
<= /DIV>
----------------------------------------------------------------= --------------------------------------------------
I think the code is right but I''m = not sure if=20 the httpd.conf is OK. What can I do?
 
Regards.
 
Gabriel = Durante
------=_NextPart_000_0051_01C30CB9.85AE94C0--