Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to California  
Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache + WAP + Nokia




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Apache + WAP + Nokia  
Gerard Jans [Planet]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-10-04 09:33 AM

Hello,

I have a problem downloading php pages using my nokia Mobile. I get an
'unknown format' error. I use the correct content-type. Using emulators etc
the page works fine. I think it is in the Transfer encoding Chunked. I want
to disable chunked transgers but I can't figure out how. I tried to use the
BrowserMatch directive. But somehow it doesn't work.

BrowserMatch "6310" nokeepalive downgrade-1.0 force-response-1.0

Does anyone have any ideas what I am doing wrong? The page I 'm talking
about can be found on http://www.jans.nl/weer.php

Thanks in advance and kind regards,

Gerard Jans








[ Post a follow-up to this message ]



ChiralSoftware is offline     Re: Apache + WAP + Nokia  
ChiralSoftware


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for ChiralSoftware Click here to Send ChiralSoftware a Private Message Visit ChiralSoftware's homepage! Find more posts by ChiralSoftware Add ChiralSoftware to your buddy list
 
03-11-04 06:30 AM

quote:
Originally posted by Gerard Jans [Planet] I have a problem downloading php pages using my nokia Mobile. I get an 'unknown format' error. I use the correct content-type. Using emulators etc the page works fine. I think it is in the Transfer encoding Chunked. I want to disable chunked transgers but I can't figure out how. I tried to use the BrowserMatch directive. But somehow it doesn't work. BrowserMatch "6310" nokeepalive downgrade-1.0 force-response-1.0 Does anyone have any ideas what I am doing wrong? The page I 'm talking about can be found on http://www.jans.nl/weer.php
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.




[ Post a follow-up to this message ]



    Re: Apache + WAP + Nokia  
Garp


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Apache + WAP + Nokia  
Gerard Jans [Planet]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-12-04 09:33 AM

Hello,

The Script I wrote looks for the strings  text/vnd.wap.wml or text/x-wap.wml
in the HTTP_ACCEPT header. If these string are found It makes an WML
structured page. Else it makes an HTML Page. On Imode Phone  (N22i) this
works perfectly. But on my nokia 6310i it doesn't. If I use an packetfilter
the page looks right.

Kind Regards,

Gerard Jans

"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).
>
>
>
> --
> ChiralSoftware
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message146618.html
>
>
>







[ Post a follow-up to this message ]



luk is offline       
luk


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for luk Click here to Send luk a Private Message Find more posts by luk Add luk to your buddy list
 
04-28-05 10:06 PM

quote:
Message # 1013612: Date: 10/01/02 18:00 By: Johnny Profile Subject: wml + php solution... Hi All! I found an interesting diference between my solution and this article. Almost everything is the same, but when i'm using the header (Content-Type: text/vnd.wap.wml); function, my phone says "Response u nknown" or "No response, try again" I have nokia 6510 mobile. So I don't use the header function and everything works well Here is my sample code what I use. <?php echo "<?xml version\"1.0\"?>"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wap forum.org/DTD/wml_1.1.xml\">"; ?> <wml> <card id="main" title="First Wap page"> <p>Here is a php number: <?php $i=1; echo $1; <br/> </p> </card> </wml> Thats all. Bye. http://www.phpbuilder.com/annotate/...php3?id=1013612
I have Nokia6100 and i get the same error with some WML scripts.I can't imag ine what the problem is.If anyone can help me(us) please post it here al the ir experience ( knowledge ) about this problem. WAP Chats : MobiiliChat 1.07
code:
http://www.mobiilichat.com/forum/mobiilichat_v1.07.zip
W@Pchat Ver.1.2
code:
http://www.earthweb.biz/myscript.php?file=wapchat.zip
GumSlone WAP Chat2 and 1.05
code:
http://gumslone.com/scripts/wap_chat_v2.zip http://gumslone.com/scripts/GS_WAP_CHAT_V1.0.5.zip
I have install it in my PC Apache + php + mysql with WML support.All in one package : XAMPP for WINDOWS
quote:
http://www.apachefriends.org/en/xampp-windows.html
All 3 WML scripts works with WINWAP 3.2
quote:
http://www.winwap.com/products_2_1.php
BUT IN MY NOKIA6100 just MobiiliChat works 100%.The rest 2 scripts didn't wo rk ,and i get "File Format Unknow" ERROR. Look the 3 WML script header functions : MobiiliChat 1.07
quote:
header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
W@Pchat Ver.1.2
quote:
header("Content-type: text/vnd.wap.wml");
GumSlone WAP Chat2 and 1.05
quote:
header("Content-type:text/vnd.wap.wml;charset=UTF-8");
It might be possible to be this header problem? MobiiliChat 1.07 works 100% for me, bust rest 2 NOT WORK !




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:21 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register