Esato Mobile
Sony Ericsson / Sony : Technical : T68i and T300 browser name?
> New Topic
> Reply
< Esato Forum Index > Sony Ericsson / Sony > Technical > T68i and T300 browser name? Bookmark topic
T68iFan Posts: 214

If I tried to retrieve the browser name from a T68i or T300 user using the following ASP code…

Request.ServerVariables(“HTTP_USER_AGENT”)

what would the returned result be?

Someone using IE 5 would return something like this:

Mozilla/4.0 (compatible; MSIE 5.0; Windows NT)

So what would be returned from a T68i or T300 browser?

Basically, I’m trying to build a script that interrogates the browser. If the browser is from a T68i or T300, I want the user to be automatically redirected to a WAP-friendly XHTML page. All other browsers should remain on the initial page.

Any ideas? Thanks for your help.

T68iFan


[ This Message was edited by: T68iFan on 2003-01-09 22:19 ]
--
Posted: 2003-01-09 23:18:00
Edit : Quote

artzi Posts: 14

Some examples with different software...

... with HTTP_USER_AGENT

Panasonic-GAD75 UP.Link/5.1.1.3

EricssonT39/R202

SonyEricssonT68/R201A

SonyEricssonT68/R501

SonyEricssonT68/R502

---
Request.ServerVariables("HTTP_ACCEPT") might be other way (it show wml/xhtml/ ets)?

Like this:

image/gif,application/vnd.wap.wtls-ca-certificate,text/x-vmel,application/xhtml+xml,application/vnd.wap.xhtml+xml, image/vnd.wap.wbmp,application/vnd.wap.mms-message,application/vnd.wap.wmlscriptc,application/vnd.wap.wmlc, text/css,application/vnd.wap.wbxml, text/vnd.wap.wml, text/vnd.wap.wmlscript, text/plain, text/plain


[ This Message was edited by: artzi on 2003-01-14 14:38 ]
--
Posted: 2003-01-14 15:16:00
Edit : Quote

T68iFan Posts: 214

Hey thanks artzi for the response.

Hehe, I finally has some time to figure it out. The following asp script checks to see if the browser is a T68 or a T300 (T30) and redirects appropriately:


@Language = VBScript
Option Explicit
Response.Expires = 0
Dim strBrowserRaw, strBrowserFormatted
strBrowserRaw = Request.ServerVariables("HTTP_USER_AGENT")
strBrowserFormatted = Left(strBrowserRaw, 15)
Select Case strBrowserFormatted
Case "SonyEricssonT68"
Response.Redirect("wap/default.htm")
Case "SonyEricssonT30"
Response.Redirect("wap/default.htm")
Case Else
End Select


This is probably not the most elegant code, but it does what I need it to do.

Keep posted for the forthcoming T68fun.com
--
Posted: 2003-01-16 01:28:00
Edit : Quote

wapchimp Posts: > 500

hey guys see my wap forum - your help is probably needed! http://www.esato.com/board/viewtopic.php?topic=16024&forum=12
--
Posted: 2003-01-16 02:32:00
Edit : Quote

New Topic   Reply
Forum Index

Esato home