note 87874 deleted from function.header by felipe

From: Date: Sun, 28 Dec 2008 13:27:35 +0000
Subject: note 87874 deleted from function.header by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148606@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- Hi! The php header() is braiin-damaged, it doesn't allow for sending "HTTP/1.1 100 Continue" header, this header should be sent BEFORE client pushes the reuest to the server; and the server should sent normal HTTP/1.1 header AFTER it has received all the request. (See RFC2616, sections 8.2.3; 10.1.1 and 14.20.) There is no way, how to this with a php. If You try: <? if ($_SERVER["HTTP_EXPECT"]=="100-continue" && $_SERVER["SERVER_PROTOCOL"]=="1.1") { header("HTTP/1.1 100 Continue", false); flush(); ob_flush(); } // ...... header ("HTTP/1.1 200 ....."); ?> .. you get only ONE header...

« previous php.notes (#148606) next »