This article will focus on discussing whether the BlackBerry mobile phone program can access the network through the proxy server in BlackBerry development. Here we will share with you briefly. I believe this article will surely help you gain some benefits.
In BlackBerry development, BlackBerry mobile apps access the network through proxy servers in several ways:
1. Use the BES channel developed by BlackBerry to set proxy servers on the MDS Server
Http://www.blackberryforums.com.au/forums/microsoft-exchange/1095-how-configure-proxy-server-blackberry-mds-connection-service.html
2. Use the DirectTCP channel (apn is cmnet) and the proxy supports URL-based proxy. The URL format is similar to the following:
Http://myproxy.xxx.com/gateway? Destination = http://www.sina.com.cn/
3. Connect to the proxy through the socket, and then write the range request recognized by the proxy into the socket.
The following article provides a thorough analysis and sample code.
- UsingHTTP-Over-SocketandHTTPProxyinJ2MEApplications
Http://myhowto.org/java/j2me/20-using-http-over-socket-and-http-proxy-in-j2me-applications/