[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CGI Errors

Bart-Jan Vrielink <bartjan@vrielink.net> 12 Jun 2001, at 12:04:

> On Tue, 12 Jun 2001, Ritesh Goel wrote:
> > I have a script which runs fine from the UNIX shell. As soon as I
> > try going thru the browser, I get an error which says - "Premature
> > end of Script Header". What should i do or what can i do ??
> It looks like the script does not produce any valid HTTP headers. As a
> minimum it should produce a line 'Content-Type: text/html' (or any
> other content-type) and a blank line, before the html begins.

So that's

print "Content-Type: text/html\n\n";
print "Content-Type: text/plain\n\n";


Reply to: