×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    2

    Bowsing with a mobile XHTML or WML?

    Is it true that the next generation of mobiles that can browse the web will be done with XHTML and not WML and WAP?

    How do I detect when it is a mobile that is browsing the site?
    Thanks a lot for any help.

    Fernando
    fernando@pavon.net
    www.pavon.net

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    140

    RE: Bowsing with a mobile XHTML or WML?

    Hi!

    The coding language of next generation WAP/mobile services is XHTML, but Nokia phones still support also WML, so existing WML applications can be used.

    One way to detect the browser is by the user name in the HTTP header. From that you'll know exactly which browser is approaching you server.

    sannah/Forum Nokia Developer Support

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    20
    Please can you explain how this is done? I'm a complete newbie!


    thanks

    Rich

  4. #4
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    466
    Hi, the browser can be identified from the user agent field, which is sent in the HTTP header when the client fetches content from the origin server. You can use the user agent field to define the type of the browser and then build logic on the origin server to serve suitable content. You need to use some scritping language, like JSP, ASP or Perl. There are a lot of example codes for detecting the client in the Web available. Just make a search with "device recognition" or similar.

    Kind regards,
    Forum Nokia

  5. #5
    Registered User
    Join Date
    Mar 2003
    Location
    New Zealand
    Posts
    9

    HTTP header

    Perhaps a better way to determine the types of files you may serve to a browser is by using the HTTP_ACCEPTS header, which will tell you straight if the browser accepts (x)html / wml etc.

  6. #6
    Registered User
    Join Date
    Nov 2003
    Posts
    1
    Has anyone had experience using HTTP_ACCEPTS checking as a way to decide which page to serve? Can it be counted on in the real world?

Posting Permissions

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