04-26-2010 10:08 AM
I'm using the old implementation of the blackberry browser (eg. BrowserFieldDemo) in os 4.5. I am able to view normal webpages, but when I go to pages with the https extension, it is unable to load the page.
In the MDS I'm getting a "Received packet for a timed out connection" error message after trying to request the page from the site at port 443 (https).
Additionally, when I try to go to the same page in the Official Blackberry Browser in the simulator I get "Connection timed out: connect" errors as well as the original "Received packet for a timed out connection". However in the Official blackberry browser in the simulator, it loads the page, but is unable to load the images.
It seems to me that I am able to make the initial connection, but follow on requests ie, for images, do not work for some reason.
Is there something simple that I'm missing here? Or does it work fine for others? If so, maybe it's some problem in my network configuration.
Connector.open() automatically returns an HttpsConnection if the url is https right? I use:
conn = (HttpConnection) Connector.open(url);
I've tried casting it to HttpsConnection instead with the same results. But it shouldn't matter right because HttpsConnection inherits from HttpConnection.
04-26-2010 12:34 PM
Ok, so I've narrowed it down a little. Found this error while debugging:
net.rim.device.cldc.io.ippp.SocketBaseIOException: Connection timed out: connect
So basically, the socket just isn't connecting at a base level. Any ideas? Do I need to set special headers for https?