It then requests an access point. I select one and then it sits there.
I have studied this Discussion Board and have heard a range of view from http does not work at all to it works with multiple sockets to it works sometimes.
1. Does http networking work on the 7650? I would like to see a working example if it does.
2. If not will a firmware upgrade be available?
3. If so when
4. I only bought the phone to do network programming using MIDP. Is there any other Nokia phones which have working network programming using MIDP?
5. If not are any planned?
Reqwireless WebViewer is an HTML Web browser with many Nokia 7650 users, so it's a good demonstration that HTTP networking on the 7650 is possible:
I would suggest trying WebViewer on your phone to help narrow down whether the issue is with your phone's settings, the MIDlet you're testing, or the server you're contacting.
We have had many Nokia 7650 users who received a rather strange error message ("Application closed jes-2f8-ConnectionsEventServer@1...KERN-EXEC 3" when trying to make an HTTP connection using WebViewer. The solution for these users was to use a normal Web connection instead of a WAP connection, and to set their gateway IP to 0.0.0.0.
Another issue with the Nokia 7650 is that it will, depending on the locale of the phone, send "HTTP/1,1" instead of "HTTP/1.1" in its requests. The Apache Web server rejects such HTTP requests. However, Tomcat seems to handle these requests fine. (With WebViewer, we send all requests through our Java servlet running under Tomcat.)
Another possible issue, in light of adiwin's comment to my initial reply, is that DNS isn't working. Reqwireless WebViewer sends all HTTP requests to an IP address, so it wouldn't be affected by a DNS problem. You should try connecting to both an IP address and a host name to see if DNS is the problem.
I had problems with http too, worked fine at emulator and I got 'bad request' from 7650. I got problems fixed by changing the language to english. I use J2ME wireless toolkit for compiling and jar building. Works fine with both mycompany.com and raw ip address. I do NOT put port number in url ":80". Here is my now working code:
I don't know anything about the 7650 but the problem sounds a lot like the problem I've been having with the 9290. And the solution was in fact, as Liam pointed out, to set the IP address to 0.
Liam, any idea why this would be the case? Also, more importantly, why did EmailViewer work for me on the 9290 when my own app wouldn't (without setting the phone's ip address to 0). Even when I tried to use Sun's httpTest app using a direct ip address, it couldn't open an input stream. And looking at the guts of the code you posted, I don't see anything different......
HttpConnection works fine(is fully functional) on the Nokia 7650. Try downloading "Coolaz Comics Nokia 7650 v.1.0.4" from http://www.midletcentral.com under the applications category. Futhermore all applications by this vendor targeted for the 7650 work with HttpConnections both with the old and new firmware.