BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-26-2007, 07:57 AM   #1 (permalink)
New Member
 
Join Date: Jun 2006
Model: 7250
PIN: 2024F813
Carrier: Cingular
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Cool Get Device Pin Number

Please Login to Remove!

I have a corp website written in ASP (not asp.net) and would like to grab the Blackberry Device Pin number and save it as a variable when a user enters the site.
Could someone please give me the code needed for me to do this. I know it involves getDeviceId(); but am unable to find the complete code needed to add to my ASP page to get it to work.

Or if it cant be done in ASP then what do I need to get this to work?

Thank You
Offline  
Old 09-26-2007, 08:40 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Aug 2005
Model: 8830
Carrier: Verizon
Posts: 144
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

rheal,

You can retrieve the PIN from the HTTP header, but first you have to make sure the BES is configured to include it in the header. The rimpublic.property file needs to have the following entry to pass the PIN in the header:

application.handler.http.header=pin

I don't recall if this entry is there by default.

From your ASP page, the PIN will be in the request header "Rim-device-id".

fbrimm
Offline  
Old 09-26-2007, 03:46 PM   #3 (permalink)
New Member
 
Join Date: Jun 2006
Model: 7250
PIN: 2024F813
Carrier: Cingular
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

To make this a varailable would I just put in the Header
<% Var1 = Rim-device-id %>
Or is there some more to it.

By the way Thank You for your reply.
Offline  
Old 09-26-2007, 04:19 PM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Aug 2005
Model: 8830
Carrier: Verizon
Posts: 144
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I haven't had the chance to test it yet, but I think it would be something like this:

Var1 = Request.ServerVariables("HTTP_Rim-device-id")
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Condom dispenser Man cave must have Vintage American Defender Condom Vending Mac
$95.0
Condom dispenser Man cave must have Vintage American Defender Condom Vending Mac pictureVintage Williams wrenches Nice Snap-On Industrial (SK, MAC, Matco, Blue Point)
$27.0
Vintage Williams wrenches Nice  Snap-On Industrial (SK, MAC, Matco, Blue Point) pictureVINTAGE APPLE MOUSEPAD II IIC IIE MAC MACINTOSH 1984 1985 RETRO
$9.99
VINTAGE APPLE MOUSEPAD II IIC IIE MAC MACINTOSH 1984 1985 RETRO pictureVintage Mac Tools Offset Slotted Screwdriver OD2 USA
$20.0
Vintage Mac Tools Offset Slotted Screwdriver OD2 USA pictureVintage 1/2" Drive MAC VUI 166T 6 Point Impact Swivel Socket
$11.95
Vintage 1/2






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.