Q
Problem solve Get help with specific problems with your technologies, process and projects.

Determining whether a BlackBerry or desktop is accessing a Web site

Determine whether a Web site is being accessed by a BlackBerry user versus a desktop user using your Lotus Domino server.

How can I use my Lotus Domino server to detect whether a BlackBerry or desktop computer user is accessing a Web site?
This answer comes from my co-presenter at Lotusphere 2007, Rana Puri. Thanks, Rana!

This may be done by examining the HTTP header information of the incoming request. Since you can code your Lotus Domino applications by using either Java or Formula language code, here are code snippets for each example:

In Java code:

String source = request.getHeader("user-agent"); 
(Where 'request' is an instance of 
'HttpServletRequest')

In Formula language code:

@If(@BrowserInfo("BrowserType")=
"Netscape";"NS";"IE";"BlackBerry")

In order to find out the exact contents of the HTTP header, use an HTTP proxy such as TCPMon to record the HTTP traffic.

Do you have comments on this Ask the Expert Q&A? Let us know.

Related information from SearchDomino.com:

  • Expert Advice: Stop spam on BlackBerry mobile devices
  • Learning Guide: Wireless Integration Development
  • Reference Center: Lotus Notes Domino and mobile devices
  • This was last published in December 2007

    Dig Deeper on Mobile Devices

    Have a question for an expert?

    Please add a title for your question

    Get answers from a TechTarget expert on whatever's puzzling you.

    You will be able to add details on the next page.

    Start the conversation

    Send me notifications when other members comment.

    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

    Please create a username to comment.

    -ADS BY GOOGLE

    SearchWindowsServer

    Search400

    • iSeries tutorials

      Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

    • V6R1 upgrade planning checklist

      When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

    • Connecting multiple iSeries systems through DDM

      Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

    SearchDataCenter

    SearchExchange

    SearchContentManagement

    Close