网页回复并将网页关闭

 HttpListenerResponse response = context.Response;
  string responseString = "";
byte[] buffer = System.Text.Encoding.UTF8.GetBytes(responseString);

 response.ContentLength64 = buffer.Length;
 System.IO.Stream output = response.OutputStream;
 output.Write(buffer, 0, buffer.Length);

// response.Redirect("http://" + this.LoginReq[rid] +"/home/dashboard");

response.StatusCode = (int)HttpStatusCode.OK;
response.Close();

你可能感兴趣的:(网页回复并将网页关闭)