i use following code to connect to the web server(iis with asp.net)
String s = "http://" + m_sUrl + m_sDstPage;
m_HttpConn = (HttpConnection) Connector.open(s, Connector.READ_WRITE);
m_HttpConn.setRequestMethod(HttpConnection.POST);
m_HttpConn.setRequestProperty("Content-Type",
"application/x-www-form-urlencoded");
m_HttpConn.setRequestProperty("Content-Length",
Integer.toString(m_sPara.length()));
DataOutputStream dos = m_HttpConn.openDataOutputStream();
dos.write(m_sPara.getBytes("utf-8"));
the problem is :when i use http1.1,the response code is 100,is it ok?
in http1.0 the server can reponse with 200

Reply With Quote

