如何在应用程序 C#(通用应用程序 Windows)中从 Visual Studio 2015 for Windows Iot 创建获取 url
Getreponse();
从 c# 2015 开始已弃用
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://XXX/online?check=useronline");
request.Method = "GET";
using (var response = request.GetResponse())
using (var stream = response.GetResponseStream())
using (var reader = new StreamReader(stream))