httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodent of Unusual Size <Ken.C...@Golux.Com>
Subject Re: [BUG] CGI Status: header fields not being honoured
Date Wed, 17 Dec 1997 19:29:31 GMT
Marc Slemko wrote:
> 
> Work fine for me...

This complains about "premature end of headers" and correspondingly
displays the canonical 500 message:

#!/usr/local/bin/perl
select (STDOUT);
$| = 1;
print "Status: 501 Foobar Not Implemented\n\n";
exit(0);

I remember earlier tests displaying the 501 message as a standard
error screen, with the H1 modified with the script's text.  I
have a script lying around that I wrote when I was verifying this
several weeks ago.

Changing it as follows displays the content rather than an error:

#!/usr/local/bin/perl
select (STDOUT);
$| = 1;
print <<EOHT;
Status: 501 Foobar Not Implemented
Content-type: text/plain

Script-generated body text.
EOHT
exit(0);

When you say it works for you, what do you mean?

#ken	P-)}

Mime
View raw message