[C#] 簡單 Web GET 範例

  • 1170
  • 0

摘要:[C#] 簡單 Web GET 與 POST 範例

Uri uri = new Uri("http://somethingURL.com/abc?page=1&catalog=20&class=3");
WebRequest request = WebRequest.Create(uri);
WebResponse response = request.GetResponse();
Stream stream = response.GetResponseStream();