如何使用Reatful API接口调用:GET方式
using System; using System.IO; using System.Net; using System.Text; // Create the web request HttpWebRequest request = WebRequest.Create("http://developer.yahoo.com/") as HttpWebRequest; // Get response using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) { // Get the response stream StreamReader reader = new StreamReader(response.GetResponseStream()); // Console application output Console.WriteLine(reader.ReadToEnd()); }具体的请看链接:https://blog.