to Graham,
Thank you for your replying,sir.
Yes,I am posting to the server,this is my Mobile Java code:
PHP Code:
String _url = url = cmnet ? ("http://" + host + path) : ("http://10.0.0.172:80" + path);
System.out.println("The sending address is:" + url);
http = (HttpConnection) Connector.open(_url, Connector.READ, true);
if (cmwap) {
http.setRequestProperty("X-Online-Host", host);
}
http.setRequestMethod(HttpConnection.POST);
String contentType = http.getHeaderField("Content-Type");
But I just want to get some data from the server,so I have not written data to The HttpConnection's OutputStream.
If my Java code is wrong,why its jar app works well on Sun Emulator,it even works well on N97 real handset.
I mean is there anything I forgot to set on the S60 emulator,this makes the http status code 411 problem.
Regards,
Defonds.