httpd-users mailing list archives

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

Rgds,

Owen Boyle

>-----Original Message-----
>From: Chan Raymond [mailto:cwraymond2000@yahoo.com.hk]

>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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message