Re: 404 OK ?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: 404 OK ?

From: John Dunlop <usenet+2004@john.dunlop.name>
Date: Sun Apr 30 2006 - 15:21:48 CEST

wd:

> header("HTTP/1.0 404 Not Found");

> HTTP/1.x 404 OK

  According to RFC2616 the x must be a digit.

  The 'OK' (called a reason phrase) is for human consumption. Your
browser would still take this as a 404. RFC2616 section 6.1.1:

http://www.ietf.org/rfc/rfc2616.txt

  In the status line you wrote, your HTTP version is 1.0, but the
headers your server sends are only defined under 1.1. What happens if
you change your status line to read:

HTTP/1.1 404 Not Found

-- 
Jock
Received on Mon May 1 03:07:52 2006