note 87874 added to function.header

From: Date: Sun, 28 Dec 2008 11:29:51 +0000
Subject: note 87874 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-148603@lists.php.net to get a copy of this message
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... ---- Server IP: 147.32.160.17 Probable Submitter: 193.165.11.142 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/87874 Del: integrated -- https://master.php.net/note/delete/87874/integrated Del: useless -- https://master.php.net/note/delete/87874/useless Del: bad code -- https://master.php.net/note/delete/87874/bad+code Del: spam -- https://master.php.net/note/delete/87874/spam Del: non-english -- https://master.php.net/note/delete/87874/non-english Del: in docs -- https://master.php.net/note/delete/87874/in+docs Del: other reasons-- https://master.php.net/note/delete/87874 Reject -- https://master.php.net/note/reject/87874 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148603) next »