[C#] 取得網路上的文字資料
- HttpWebRequest Request = (HttpWebRequest)WebRequest.Create("http://google.com");
- HttpWebResponse Response = (HttpWebResponse)Request.GetResponse();
- StreamReader ResponseStream = new StreamReader(Response.GetResponseStream());
- MessageBox.Show(ResponseStream.ReadToEnd());
留言
張貼留言