Hi mark,
Thanks for replying me. Ok, maybe i'm still very new to MIDlet/J2ME. But can you or any volunteers to give a try to my server
http://www.bettaking.com and see whether you guys having the same problem like me? I have tries so many times and many ways yet still can't figure out whats wrong with it.
Here is my simple code to get the return response status code:
try {
conn=(HttpConnection)Connector.open(requested,Connector.READ_WRITE);
is=conn.openInputStream();
int respondCode=conn.getResponseCode();
String status=Integer.toString(respondCode);
response.setText(status);
form.append(response);
is.close();
conn.close();
}
catch (IOException ioex) {
Alert a=new Alert("Error",ioex.toString(),null,AlertType.ALARM);
a.setTimeout(Alert.FOREVER);
display.setCurrent(a);
}
Using that codes i get an exception error. But the same coding working on other websites like
http://www.yahoo.com/ or other valid url. At least it will return the response code indicated success or not. But not with my website.
http://www.bettaking.com Thank you all for your concern and helps.
Regard,
Mirai