#12992 [Opn->Bgs]: php ignores Accept: text/vnd.wap.wml

From: Date: Tue, 20 Aug 2002 12:32:19 +0000
Subject: #12992 [Opn->Bgs]: php ignores Accept: text/vnd.wap.wml
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17285@lists.php.net to get a copy of this message
ID: 12992 Updated by: edink@php.net Reported By: tf@tfromm.com -Status: Open +Status: Bogus Bug Type: Apache related Operating System: linux PHP Version: 4.0.6 New Comment: This is not a bug. PHP lets application programmer decide what to the with the accept headers. See http://www.php.net/manual/en/function.getallheaders.php Previous Comments: ------------------------------------------------------------------------ [2001-08-28 03:02:12] tf@tfromm.com when Accept: text/vnd.wap.wml or other type is accepted and the .php site has only text/html , then an error should returned like: 406 Not Acceptable like apache does. for example: tf@defiant:~/foobar > telnet stargazer 80 Trying 192.168.0.6... Connected to stargazer. Escape character is '^]'. GET / HTTP/1.0 User-Agent: SMS Accept: text/vnd.wap.wml HTTP/1.1 406 Not Acceptable ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12992&edit=1

« previous php.bugs (#17285) next »