Problem with HttpConnection on nokia 7650

i've a problem with httpconnection when i use this on my nokia 7650.

my code is this...

HttpConnection c = null;

InputStream is = null;

Codice codice=new Codice();

try

{

c = (HttpConnection)Connector.open(url+"?codice="+codice.getCod()+"&testo="+str+"&codest="+codest+"&send=Invia");

System.out.println(url+"?codice="+codice.getCod()+"&testo="+str+"&codest="+codest+"&send=Invia");

is = c.openInputStream();

is.close();

c.close();

}

catch (Exception e)

{

System.out.println("Messaggio.invioMessaggio('"+str+"', '"+codest+"'):"+e);

}

on emulator it runs.

When i use this on phone, the device ask the connection profile to use for connecting and on invoke method openInputStream it crash!

Thank you.

I'm italian, sorry for my english!

[889 byte] By [spalmaa] at [2007-9-28 0:00:30]
# 1
I think you will have better luck finding an answer on the nokia java forums. http://nkn.forum.nokia.com/devrel/forumshow.cfm?mb=3665071750056882
Abusea at 2007-7-7 17:08:04 > top of Java-index,Other Topics,Java Game Development...