读http请求内容

 			string rl;
            WebRequest myReq=WebRequest.Create("https://www.baidu.com/");
            WebResponse myRes = myReq.GetResponse();
            Stream resStream = myRes.GetResponseStream();
           
            StreamReader sr = new StreamReader(resStream, Encoding.UTF8);
            StringBuilder sb = new StringBuilder();
            while ((rl = sr.ReadLine()) != null)
            {
                sb.Append(rl);
            }
            myRes.Close();
上一篇:Unity 安卓Apk更新流程


下一篇:http请求