http://192.168.5.101:8080/reportManage/
"; System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(url); request.Method = "GET"; request.ContentType = "application/json"; request.Timeout = 20000; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream getStream = response.GetResponseStream(); using (StreamReader sr = new StreamReader(getStream, Encoding.UTF8)) { resultstr = sr.ReadToEnd(); sr.Close(); } getStream.Close(); response.Close();流程跑完,结果resultstr全是html的文本,而我想要只获取的是json对象的数据,是哪里没设置对吗?小白求指教。