آموزش بدست اوردن سورس صفحه html با سی شارپ
کد:
string url = "https://www.digikala.com/"; using (HttpClient client = new HttpClient()) { using (HttpResponseMessage response = client.GetAsync(url).Result) { using (HttpContent content = response.Content) { string result = content.ReadAsStringAsync().Result; } } }
تمام.