Re: Sending 'status-code=204'.

"Domingo Siliceo" <638net@medusa.es> wrote:
  > Hi all,
  > I'm trying to send a status-code 204 from a script that no contains any 
  > data to be shown in the html browser, so, I guess I should not define any 
  > content-type header in my script. This script might look like
  > 
  > #tested under NTPerl 4.036 and EMWAC 0.991
  > 
  > print "Status-Code=204\n\n";
  > 
  > open FILE ">>momo.html";
  > print FILE "Bon dia!\n";
  > close (FILE);
  > 
  > exit (0);
  > 
  > I hope you get the idea. 

Try changing the first line to:
	print "Status: 204 No Content\n\n";

You did not say which server you're using, but the CGI interface expects
a "header" named "Status".  As written, the script produces no headers
(you need a ':') and uses the wrong name anyway ("Status-Code").

Dave Kristol

Received on Thursday, 16 May 1996 09:34:10 UTC