Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 490
Registered: ‎07-16-2008
My Device: Not Specified
Accepted Solution

HTTP Request Property items

Hello guys'

I have some problem. My application creates HTTP request. 

So I need to know how to get value of some property items. These items are used for setting HTTP headers.


These items are:
















In other words :



httpConn.setRequestProperty("x-rim-bsm-id",            "HOW TO GET ?");
httpConn.setRequestProperty("profile",                    "HOW TO GET ?");
httpConn.setRequestProperty("x-wap-profile",           "HOW TO GET ?");
httpConn.setRequestProperty("Accept",                   "HOW TO GET ?");
httpConn.setRequestProperty("x-rim-default-charset",   "ISO-8859-1");
httpConn.setRequestProperty("x-rim-image-threshold",   "HOW TO GET ?");
httpConn.setRequestProperty("Accept-Charset",          "ISO-8859-1,UTF-8,US-ASCII,UTF-16BE,windows-1252,UTF-16LE,windows-1250");
httpConn.setRequestProperty("Accept-Language",         "en-GB,en;q=0.5");
httpConn.setRequestProperty("User-Agent",                 "HOW TO GET ?");
httpConn.setRequestProperty("x-rim-transcode-content", "HOW TO GET ?");
httpConn.setRequestProperty("Host",                          "HOSTNAME");
httpConn.setRequestProperty("x-rim-gw-properties",      "HOW TO GET ?");


HOW TO GET ?  -I don't know these signed items.


Plz help me guys'







Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: HTTP Request Property items

The only one of general concern AFAIK is the profile and I don't think I ever found a place to just

read it- I have had to construct it from platform version info and agent profile information.

I'm not sure if there is anyway to get x-wap-profile from browser either.


All the others should be derivable from your objectives- if you know what you are doing these generally

fill themselves in.  You may get some ideas by hunting around the ietf site, for example,




The x-headers would presumably derive from API specs such as RIM transcoding etc.



Posts: 490
Registered: ‎07-16-2008
My Device: Not Specified

Re: HTTP Request Property items

Tnx man'