03-11-04 08:34 PM
"ChiralSoftware" <ChiralSoftware.12y0pc@mail.webservertalk.com> wrote in
message news:ChiralSoftware.12y0pc@mail.webservertalk.com...
>
> Gerard Jans [Planet] wrote:
>
> I looked at that page and it's plain old html content with a plain old
> text/html content type. I fetched it using curl, also manually setting
> the user agent to a WAP browser. It certainly won't work with wap.
>
> There is an easier way to create a 'WAP server'
> (http://chiralsoftware.net/hosting-customer.html).
>
I haven't looked, but I encountered this just this week. You need to serve
the page with headers that are WML mime-encoded (easy to find how to
configure that online), but trying to do this manually (changing the type
with PHP's set_ini("default_mimetype","text/vnd.wml.wap") or
header('Content-Type: text/vnd.wml.wap')) doesn't seem to work.
To fix it, I moved my WAP generating pages to a separate directory under
/var/www/html and created a .htaccess file in it which sets the mimetype
thusly:
php_value default_mimetype text/vnd.wml.wap
I'd like to know how to configure Apache to serve my HTML pages as text/html
and my WML as text/vnd.wml.wap in the same folder, but hours of wrangling
hasn't solved it.
Garp
[ Post a follow-up to this message ]
|