httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: Premature end of script headers???
Date Tue, 20 Aug 2002 16:29:00 GMT
See comments below


Owen Boyle

>-----Original Message-----
>From: Chan Raymond []

>print "Content-type: text/html\n";
>print "Pragma:no-cache\n\n";

This is the header. It looks OK but it must be printed BEFORE any other output or you get
the "Premature end of script headers" error.

>Can anyone also tell me howto test the .cgi file in command line.

What OS are you using? on Linux/Unix, cd to the CGI directory and type "./testcgi.cgi" and
you should get the html printed to the screen.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message