|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12991 Wrong content type while parsing .wml files which are parsed by php
Submitted: 2001-08-28 03:01 UTC Modified: 2001-11-03 22:06 UTC
From: boris at gamate dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.6 OS: Linux with Apache 1.3.20
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
29 - 21 = ?
Subscribe to this entry?

 [2001-08-28 03:01 UTC] boris at gamate dot com
Hi there,


I added to the Apache Mime Types:

text/vnd.wap.wml                wml

Next I set PHP to parse .wml files in apache config:

AddType application/x-httpd-php .wml

What I want to do ? Parsing .wml files for wap pages.

What's the result ?

telnet 80
GET /wap.wml HTTP/1.0
Accept: text/vnd.wap.wml

Apache/PHP returns:

HTTP/1.1 200 OK
Date: Tue, 28 Aug 2001 07:04:44 GMT
Server: Apache/1.3.20 (Unix) PHP/4.0.6
X-Powered-By: PHP/4.0.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html

I sent Accept: text/vnd.wap.wml and get Content-Type: text/html. That hat to return a 406 Error - not accaptable.

Content Type seit in Apache Mime Config is ignored plus Accept: Header is ignored. 

If I set a Content-Type with the Header funktion everthing ist fine - but if not there have to be an Accept Error !

Best regards


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-03 22:06 UTC]
You can use this php.ini directive to set the 

default_mimetype = text/vnd.wap.wml

This can also be set within httpd.conf / .htaccess files:

php_value default_mimetype text/vnd.wap.wml


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 04:01:29 2024 UTC