02-19-2010 03:50 PM
I have to access a server where the resources have path and I have to set parameters via QueryString
I've been addding "device=true" at the end of the URL and at the end of the hostname
and none of those works. Is there any way to specify it when the URL has path and uses querystring
I'm working with JDE Plugin 4.5, Ecliipse 3.4, for Curve 8310 and Bold 9000
Solved! Go to Solution.
02-19-2010 05:21 PM - edited 02-19-2010 05:23 PM
You always add the connection string to the very end of the complete URL, regardless of what else the URL contains.
The connection string is stripped off by the Blackberry processing so your host won't be confused by it. The connectin String is used by the BlackBerry to determine what connection path the BlackBerry will use for the connection.
BTW, it is ";deviceside=true/false", not "device", which might explain part of your problem.
I believe this KB article explains all the possible connection strings:
What Is - Different ways to make an HTTP or socket connection
Article Number: DB-00396
For further information, I recommend the Required reading section of this Thread:
02-19-2010 06:24 PM
Thanks for your response.
You are rigth, is deviceside . My problem I think is based on the requirement of my application to be able to connect to my web service whatever the connection the user has (3G, GPRS/EDGE, WiFi,etc) and then attach the right connection string.
Unfortunately , the simulator doesn't behave as the real device. Right now I'm able to read one of my services, but I'm not able to open a socket or pull an image. Sometimes I got an Tunnel Failed or just an IOException without any message.
I don't know why RIM didn't provide a component that could make all this work (since all mobile network / wifi) information is also in the phone, similar as the Iphone provides for connections , but anyways this is what we have.