W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1996

HTTP server reply status again

From: Kim Liu <KLIU@us.oracle.com>
Date: 21 Aug 96 17:12:22 -0700
Message-Id: <199608221738.KAA19071@mailsun2.us.oracle.com>
To: www-lib@w3.org
So what's the deal here? In beta 1, the MakeReplyPipe() in HTTPServ.c has a 
bug that makes it always reply with "500 Internal" instead of "200 OK". 
Somebody pointed this out a long time ago and I remembered someone replied to 
this saying that he couldn't figure out the right way to fix this and he would 
simply replace the 500 with 200. This is a quick fix but it doesn't seem to be 
the intention of the author of that piece of code.  
 
Now in beta 3, an additional "100 Continue" has been inserted there. The code 
looks like 
 
	/* Output the response */ 
	PUTS(HTTP_VERSION); 
	PUTS(" 100 Continue"); 
	PUTC(CR); 
	PUTC(LF); 
 
	if (response_line) { 
	    PUTS(response_line); 
	    HT_FREE(response_line); 
	} else {	 
	    PUTS(HTTP_VERSION); 
	    PUTS(" 500 Internal"); 
	    PUTC(CR); 
	    PUTC(LF); 
	} 
 
This new "100 Continue" makes Netscape really confused and the correct 
response "200 OK" is never incorporated into the code base. 
 
I guess I could simply take out the myterious "100 Continue" and replace the 
"500 Internal" with a "200 OK". But could someone explain to me what's really 
happening here? 
 
-Kim 
Received on Thursday, 22 August 1996 13:38:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:26 GMT