The last week i've been having some serious trouble getting my mobile to perform a http connection so that i might read some data from a url. Anyway this is more to help anyone that comes across the same problem in the future rather than a question. I have a nokia 7650 and i'm on the o2 network. The reason i say this is because in order to get ur midlet to connect to a url you first have to web enable your sim. You can do this by simply emailing o2.
The second part of my problem was for some reason my midlet would simply not connect, it would simply freeze as soon as it attempted to make a connection. The reason... the connection code MUST BE RUN IN A SEPERATE THREAD! I'd seen alot of people post this suggestion but noone saying yes that worked so here it is!. I dont know why the code must be run in a seperate thread, to be honest my code is virtually textbook and it doesnt use any threads and my application is performing no other operations so i'm not quite sure why. In any case it works, so if anyone comes accross a similar problem in the future hopefully this will help.