HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://XXX/service/Service.ashx?token={A50F6425-D6E7-458D-992A-AB61B3F8CF9B}&action=plancollege&pageindex=1&pagesize=30&classid=" + classid + "&orderid=" + orderid + "&levelid=" + levelid + "&collegename=" + sCollege + "&provinceid=" + pro);
request.Method = "GET";
request.ContentType = "text/html;charset=UTF-8";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream myResponseStream = response.GetResponseStream();
StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.GetEncoding("utf-8"));
string retString = myStreamReader.ReadToEnd();
myStreamReader.Close();
myResponseStream.Close();
时间: 2024-12-13 17:12:58