#19778 [Opn]: Provide a way to remove http headers - like f.x. header("Pragma:")

From: Date: Mon, 11 Nov 2002 00:41:54 +0000
Subject: #19778 [Opn]: Provide a way to remove http headers - like f.x. header("Pragma:")
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24505@lists.php.net to get a copy of this message
ID: 19778 Updated by: maxim@php.net Reported By: php@savignano.de Status: Open Bug Type: Feature/Change Request Operating System: any PHP Version: 4.2.1 New Comment: Blind shot - this is impossible because headers get sent as soon I they are encountered and thus you can override them by sending one more yet cannot remove what you have already sent. I might be wrong, though. If I'm not then lots close this one. Previous Comments: ------------------------------------------------------------------------ [2002-10-06 08:29:27] php@savignano.de Sometimes it would be very handy to be able to remove a http header that has already been set (for example, by the session module). Even though header() allows me to replace a header, there is no way to completely remove it. Proposal: header("Pragma:") could be used to remove a Pragma header - i.e. a header given with no parms would remove the header. Better: New function like remove_header() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19778&edit=1

« previous php.bugs (#24505) next »