I'm having connection problems. The emulator works fine, and hitting the same URL as the one my application generates in WebViewer works great. Every once in a while I get a valid request out, but I can't seem to reproduce the conditions for it.
Any suggestions? I've got firmware 2.41 on Cingular (U.S.).
I'm making the HttpConnection from a separate thread.
Looks like WebViewer uses a proxy server, which is how it is able to get around the issue. It's an issue with that particular host -- I can't reach it from the WAP browser either. So I don't think this is a Java problem. Still, if you have any suggestions on how to fix it, let me know. AFAIK there's no IP restrictions on the web server itself.
I would try experimenting with different hosts and different types of servers--try requesting an image from some public Web sites and also from your host. Check whether you can get content from sites with the same make of Web server (IIS, Apache, whatever) as the server you're trying to reach.
I would also experiment with different kinds of content and different Content-Type headers in case the WAP gateway isn't able to handle the kind of content that your server is returning.
It sounds like you're using a GPRS WAP access point. I would try using a GPRS Internet access point. For Cingular, I think the GPRS APN that you want is "isp.cingular" with username "ISP@CINGULARGPRS.COM" and password "CINGULAR1", but I'm not sure.
When using an Internet access point on the Nokia 3650 or 7650, you need to set the gateway IP to 0.0.0.0.