You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Graham Leggett <mi...@sharp.fm> on 2003/10/28 15:39:06 UTC
Httpd and WAP
Hi all,
I have been trying to set up Nagios, a system monitoring tool with a web
(and WAP) frontend (CGIs in Apache), and I have been specifically trying
to access it from a Nokia mobile via WAP.
I am able to connect to the URL of the wap client, and the Httpd
correctly returns "406 Not Authorised" (a password is required), however
at this point the WAP browser in the phone says "file format unknown".
It is questionable at this point whether the WAP browser or Apache is at
fault, thus the question here.
The error log reports this:
[error] [client 196.11.240.251] no acceptable variant:
/var/www/error/HTTP_UNAUTHORIZED.html.var
What I suspect is happening is that Apache is trying to send a text/html
response to a browser that is not capable of receiving text/html, thus
the error on the phone.
My question is: How does one ensure that a WML response is sent to a
browser if the browser is a WAP phone, but HTML otherwise if the browser
is a normal browser?
Regards,
Graham
--