This version of www.jasonlam604.com is deprecated.
If you are not redirected to the new web site in 3 seconds, please click on the following link
http://www.jasonlam604.com/v2/index.php
 

 


HTTP Connections with Blackberry
by Jason Lam

Making HTTP Connections is the same as any other J2ME application/game except you need to add the wap parameters specific to the operator/carrier the application is running on if you so decide not run the Blackberry application/game in a Blackberry Enterprise Environment. In short BES is excatly the same as a "normal" HTTP Connection call. If you do not use a BES/MDS following parameters you need to add are:

  • WapGatewayIP
  • WapGatewayAPN
  • WapGatewayPort

This information can be be usually obtain from the operators/carrier developer portal.

An example of what an actually call would look like:

url = "http://www.myserver.com/myscript.jsp;WapGatewayIP=1.1.1.1;WapGatewayPort=9301
;WapGatewayAPN=1.1.1.1
conn = (HttpConnection)Connector.open(url);

Yes you can still use GET parameters, you just need to tag the WAP info at the end.

Note both Nextel and Telus Mobility (MIKE not there 1X service) use the iDEN network. Instead of passing in WAP info you need to set the parameter deviceside=true. For example:

url = "http://www.myserver.com/myscript.jsp;deviceside=true";

 

| Home | Tutorials | Tips / Hints | Books | Links |
| Resume | Portfolio | Services | Contact |

The contents of this webpage are copyright © 2003 - 2006
Jason Lam All Rights Reserved