×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    19

    Possible to wrap http to become a wap?

    Confusing subject? maybe.

    I'm searching a solution for a problem that may not ever happen in some countries.

    I'm in China. China Mobile provides different packages for people who purchase different phones (SIM cards). One package may restrict users in some functions they can use. Others may not.

    The problem occurs in one package that forbids users to access the HTTP access point, which means people who purchase this package can only surf WAP sites. This, I believe, results in the failure of http connections of MIDLets.

    I came up with a hypothesis to wrap a http request to servlets to become a wap request that can be dealt with by a WAP gateway. However, I am not terribly familiar with the underlying mechanism of WAP, and how a WAP gateway distinguish whether an incoming request is a wap request or a http request.

    Any technical hints or suggestion is extremely appreciated.

    Great Thanks.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    Http is a higher level protocol than WAP. On the wired internet it is usually transfered over tcp, but that is by no means because it has to be over tcp, just because tcp is the predominant transport protocol on the net. As far as specifications go, there is nothing stopping http from being delivered over WAP.

    If we are talking about Java (this is the Java forum after all), then you can't but you don't have to. The HttpConnection class is just a high level abstraction, and the phone's software is the one that does all the work. You have no control over this work. The phone could implement your http request over WAP if it has been programmed for it (Nokia Series 40 phones do this for example).

    So basically, you use the same code for WAP or internet access points, and it can work or not depending on if the phone supports it (like I said, Nokia Series 40 support it, the Sony Ericsson T610 can only use internet access points for instance).

    shmoove

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    19
    Thanks for the reply.

    That's quite discouraging to hear that there is nothing we can do.

    I have came across the case that nokia Series 40 can access http website via the WAP access point, and hope there embeds a secret trick. Once I know it, I may code my midlet to have such a function.

    Before that, I wish anyone can, if please, briefly explain how the WAPGateway distinguish a wap request and a http request?

    Best Wishes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×