HttpWebRequest req = (HttpWebRequest)WebRequest.Create(sb.ToString()); WebResponse rep = req.GetResponse(); StreamReader sr = new StreamReader(rep.GetResponseStream()); string result = sr.ReadToEnd(); rep.Close(); sr.Close(); 这个返回的result就是json
sb 是地址和参数