W3C home > Mailing lists > Public > www-talk@w3.org > May to June 1996

Re: Sending 'status-code=204'.

From: Dave Kristol <dmk@allegra.att.com>
Date: Thu, 16 May 96 09:31:41 EDT
Message-Id: <9605161331.AA13907@aleatory.tempo.att.com>
To: 638net@medusa.es
Cc: www-talk@www10.w3.org
"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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:19 GMT