ID: 12991
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Apache related
Operating System: Linux with Apache 1.3.20
PHP Version: 4.0.6
New Comment:

You can use this php.ini directive to set the 
mimetype:

default_mimetype = text/vnd.wap.wml

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

php_value default_mimetype text/vnd.wap.wml

--Jani


Previous Comments:
------------------------------------------------------------------------

[2001-08-28 03:01:56] [EMAIL PROTECTED]

Hi there,

Scenario:

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 domain.com 80
GET /wap.wml HTTP/1.0
Accept: text/vnd.wap.wml
<return><return>

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
Boris


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=12991&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to