WEB, WAP?

WEB, WAP? SearchSearch
Author Message
Frank
Posted on Monday, September 29, 2003 - 06:52 am:   

Hi,

Now I am developing a browser, which should enable to access wap site and web site. I hope that it can be identifed that site is wap or
web automatically when user input site.
I dont think that it is right only in terms of the 'wap' or 'www' , but I dont know how to disguish it. can you tell me?

thank you!


Bryce Norwood - NowSMS Support
Posted on Tuesday, September 30, 2003 - 10:01 pm:   

Frank,

There's really no way of knowing until you get there.

The "Content-type:" header in the HTTP reply will tell you what the content type is ...

text/html - Standard HTML
text/vnd.wap.wml - Standard WML 1.x
application/xhtml+xml - XHTML Mobile Profile or XHTML Basic
Frank
Posted on Thursday, October 09, 2003 - 03:27 am:   

Thank you. I have another question.
If I want to visit website(e.g,www.cnn.com )in a mobile phone, could you tell me whether it need
wap gateway,or communicate with webserver
directly via GGSN? If so , I think I dont enable to judge which way will be used when user input
a website. If not, E-mail can setup a connection via tcp/ip directlt(not gateway),why cant website
setup connection ? thank you!

Frank
Posted on Thursday, October 09, 2003 - 03:30 am:   

Thank you. I have another question.
If I want to visit website(e.g,www.cnn.com )in a mobile phone, could you tell me whether it need
wap gateway,or communicate with webserver
directly via GGSN? If so , I think I dont enable to judge which way will be used when user input
a website. If not, E-mail can setup a connection via tcp/ip directlt(not gateway),why cant website
setup connection ? thank you!
Bryce Norwood - NowSMS Support
Posted on Thursday, October 09, 2003 - 07:18 pm:   

Frank,

It really depends on the mobile operator through which you are connecting.

Many mobile operators have different GPRS APNs, where they charge different tarriffs depending on whether you are connecting via WAP, or direct internet protocols (many charge more for direct internet accessibility).

When you connect to the GPRS APN for WAP, you are given a private IP address that can only issue requests through the operator's WAP gateway.

When you connect to the GPRS APN for standard internet access, you are still given a private IP address, but that address usually goes through a NAT (network address translation) router that allows for open internet connectivity.

So in a perfect world, I'd suggest that you have configuration options for how the user connects.

Allow the user to connect through a WAP gateway proxy; or through an HTTP proxy (we're going to see a lot more of this, I'd recommend you support "deflate" RFC1951 content encoding for compression); or through HTTP direct.

Even if the content is HTML, it can still be routed through a WAP gateway.

And even if the content is WML, it can still be retrieved via HTTP direct (or HTTP proxy), without going through a WAP gateway.

-bn