HttpConnection problem in MIDP
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sas3_PB
Posted On:   Tuesday, September 9, 2003 11:47 PM

Hi all, i wrote a midlet in which i m connecting to server using Connector.open(url) method.it is working perfectly with the emulator where as i m testing that through PDA(palm m130) it is giving problem,it is giving IOException. is that i have to change any setting in the PDA. i m writing code there.could any body help me. String url = "http://localhost:8080/servlet/UserAuthentication?uname=kiki&pwd=kiki"; HttpConnection hc = null; InputStream in = null; hc = (HttpConnection)Connector.open(url); /*It is giving problem here*/ in = hs.openInputStream(); pls correct this problem    More>>

Hi all,



i wrote a midlet in which i m connecting to server using Connector.open(url) method.it is working perfectly with the emulator where as i m testing that through PDA(palm m130) it is giving problem,it is giving IOException. is that i have to change any setting in the PDA.
i m writing code there.could any body help me.





String url = "http://localhost:8080/servlet/UserAuthentication?uname=kiki&pwd=kiki";

HttpConnection hc = null;

InputStream in = null;

hc = (HttpConnection)Connector.open(url);



/*It is giving problem here*/

in = hs.openInputStream();


pls correct this problem    <<Less

Re: HttpConnection problem in MIDP

Posted By:   Francesco_Desiderio  
Posted On:   Wednesday, September 10, 2003 04:01 AM

Hello,
excuse if I don't speak English very well. I have had your same problem. The problem is the port: i have setting the port of url connection to 80 and my device is succesfull connect to the server.

Bye
About | Sitemap | Contact