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

From: Date: Sun, 06 Oct 2002 13:29:27 +0000
Subject: #19778 [NEW]: Provide a way to remove http headers - like f.x. header("Pragma:")
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21633@lists.php.net to get a copy of this message
From:             php@savignano.de
Operating system: any
PHP version:      4.2.1
PHP Bug Type:     Feature/Change Request
Bug description:  Provide a way to remove http headers - like f.x. header("Pragma:")

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 bug report at http://bugs.php.net/?id=19778&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=19778&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=19778&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=19778&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=19778&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=19778&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=19778&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=19778&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=19778&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=19778&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=19778&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19778&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=19778&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=19778&r=isapi



Thread (6 messages)

« previous php.bugs (#21633) next »