http://qaru.site/questions/44427/deciding-between-httpclient-and-webclient
http://www.diogonunes.com/blog/webclient-vs-httpclient-vs-httpwebrequest/
https://stackoverflow.com/questions/20530152/deciding-between-httpclient-and-webclient/27737601#27737601
https://stackoverflow.com/questions/53156825/is-it-better-to-use-httpclient-or-webrequest-in-asp-net-core-to-read-the-content
https://stackoverflow.com/questions/4988286/what-difference-is-there-between-webclient-and-httpwebrequest-classes-in-net
var http = (HttpWebRequest)WebRequest.Create("http://example.com");
var response = http.GetResponse();
var stream = response.GetResponseStream();
var sr = new StreamReader(stream);
var content = sr.ReadToEnd();
var client = new WebClient();
var content = client.DownloadString("http://example.com");
Комментариев нет:
Отправить комментарий