public void handlePOSTRequest(HttpProcessor p, string postData) { Display("Connect", p.socket.Client.RemoteEndPoint.ToString(), p.http_method, p.length.ToString()); p.outputStream.WriteLine("{0}", postData);//Test,will replace by To do //To do DeviceinfoEntity entity = DeviceBusiness.GetDeviceInfo(); Display("Response", p.socket.Client.RemoteEndPoint.ToString(), p.http_method, postData.Length.ToString()); }
public void handlePOSTRequest(HttpProcessor p, string postData) { Display("Connect", p.context.Request.RemoteEndPoint.ToString(), p.http_method, p.length.ToString()); //To do DeviceinfoEntity entity = DeviceBusiness.GetDeviceInfo(); byte[] buffer = Encoding.UTF8.GetBytes(postData); p.context.Response.OutputStream.Write(buffer, 0, buffer.Length); // Display("Response", p.context.Request.RemoteEndPoint.ToString(), p.http_method, postData.Length.ToString()); }