C#: HttpListener Error Serving Content

后端 未结 2 613
情歌与酒
情歌与酒 2021-01-15 12:24

I have implemented something similar to this only real difference is

string filename = context.Request.RawUrl.Replace(\"/\", \"\\\\\").Remove(0,1);
string p         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-15 13:07

    Try:

    using (Stream s = context.Response.OutputStream)
    {
          s.Write(msg, 0, msg.Length);
          s.Flush()             
    }
    

提交回复
热议问题