标签:tpc 字符串 contex stream encoding request post new 请求
byte[] byts = new byte[HttpContext.Current.Request.InputStream.Length]; HttpContext.Current.Request.InputStream.Read(byts, 0, byts.Length); string req = System.Text.Encoding.UTF8.GetString(byts);//编码类型按实际需求
客户端调用web api 的post请求,传入一个字符串时,用此方法获取此字符串。
标签:tpc 字符串 contex stream encoding request post new 请求
原文地址:https://www.cnblogs.com/dinggf/p/12324341.html