0

I have the following code which was working fine:

HttpConnection request =
    (HttpConnection) Connector.open("https://www.google.com");
// It locks at the following line until an exception is thrown 
int responseCode = request.getResponseCode();

All of the sudden it began to block at the getResponseCode() line until an exception is thrown with the following message:

Local connection timed out after ~ 120000

All is happening in the simulator, and I have MDS enabled.

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
danielrvt-sgb
  • 1,118
  • 5
  • 17
  • 33
  • 2
    In the simulator, can you go to the normal browser app (not your own app) and navigate to https://www.google.com? Does that succeed? – Nate Mar 06 '13 at 21:49
  • same question http://stackoverflow.com/questions/15248548/blackberry-httpconnection-and-query-string – Rince Thomas Mar 07 '13 at 05:13
  • I think you need to change URL to `https://www.google.com;deviceside=false` – drafael Mar 13 '13 at 12:04

0 Answers0