note 87875 deleted from function.header by danbrown

From: Date: Sun, 28 Dec 2008 17:20:26 +0000
Subject: note 87875 deleted from function.header by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148618@lists.php.net to get a copy of this message
Note Submitter: Petr Tomasek ---- 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 (#148618) next »