I'm not sure I'm asking this question correctly, but does anyone know how to make a "browser field" declare its browser type to the server (in the Java code).
I'm messing with an example distributed with the JDE:
...BlackBerry JDE 4.1.0\samples\com\rim\samples\device\blackberry\br owser\BrowserFieldSampleApplication.java
It works fine for when I use the "www.google.com" url. However, when I try to access one of the pages on my internal site (mySite.com/somePage.htm), it gives me an error message instead of content:
"Couldn't process request as browser type (HTTP_USER_AGENT) is not specified."
So I'm looking through the Developer Guide and the RIM Device Java Library to find a way to explicitly set the HTTP_USER_AGENT / browser type. Two methods look promising to me, but I haven't gotten either of them to work yet. Can anyone look at these and tell me if either one looks like I'm on the right track? (Exposing a great deal of ignorance here
myRenderingSession.getRenderingOptions().setProperty( RenderingOptions.CORE_OPTIONS_GUID, RenderingOptions.USER_AGENT, "Blackberry8700/4.1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/102");
myRequestHeaders.setProperty( "HTTP_USER_AGENT", "Blackberry8700/4.1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/102");
Side Note: The page on my internal website which is giving me the error message works fine when I access it from the regular blackberry browser. It only gives me the error when I'm trying to access it from a "browser field" in my code. So I'm pretty darn sure that my problem is in my Java code.
Thanks much, if anyone can give me a pointer