Not able to get response back on java code while http get with S60

Posted by Rishabh on Stack Overflow See other posts from Stack Overflow or by Rishabh
Published on 2010-04-27T05:06:11Z Indexed on 2010/04/27 5:13 UTC
Read the original article Hit count: 271

Filed under:
|
|

Hi,

I am using Net Beans for developing an application on S60. I made one page for user authentication and using .net wcf service to authenticate user. i am able to send data on .net service by HttpGet method but not able to get response back on java page.

I have tested it on fiddler with this url its working fine and returning response code 200, but not getting response code by java code. Following code i am using. Is some thing wrong here ?

httpConn = (HttpConnection)Connector.open(url); httpConn.setRequestMethod(HttpConnection.GET); httpConn.setRequestProperty("User-Agent", "Profile/MIDP-2.1 Confirguration/CLDC-1.1");

int respCode = httpConn.getResponseCode();

Thanks Rishabh

© Stack Overflow or respective owner

Related posts about s60

Related posts about symbian