I am using Nokia 7650 with GSM Analog Data connection over Kanel 1.2.1 WAP Gateway. The sample from Sun and the Network Midlet Sample from Nokia Forum produces the IOException: Status =-9 when httpconnection is used, or blocks on that section.

Here is an extract from the code I've used:
String url=.....
HttpConnection c = null;
InputStream is = null;
try {
c = (HttpConnection)Connector.open(url);
is = c.openInputStream();
String type = c.getType();
int len = (int)c.getLength();
if (len > 0) {
byte[] data = new byte[len];
int actual = is.read(data);
String response = new String(data);
Alert aa = new Alert("Response", response, null, null);
display.setCurrent(aa, inForm);

} else {
int ch;
while ((ch = is.read()) != -1) {
} finally {
if (is != null)
if (c != null)

Could the problem be in the GSM network or Wap gateway not supporting http or something? By the way the POP3 and SMTP protocols are working fine.

Thanks in advance.